- actor interface fixes.

This commit is contained in:
Christoph Oelckers 2022-11-13 18:47:50 +01:00
parent e62b79c7c9
commit 660c546266
4 changed files with 3 additions and 4 deletions

View file

@ -547,7 +547,7 @@ DEFINE_FIELD_NAMED(DCoreActor, sprext.mdanimcur, mdanimcur)
DEFINE_FIELD_NAMED(DCoreActor, sprext.renderflags, renderflags)
DEFINE_FIELD_NAMED(DCoreActor, sprext.alpha, alpha)
DEFINE_FIELD_NAMED(DCoreActor, time, spawnindex)
DEFINE_FIELD_NAMED(DCoreActor, spritesetindex, spritesetpic)
DEFINE_FIELD(DCoreActor, spritesetindex)
DEFINE_FIELD_NAMED(DCoreActor, spr.angle, angle)
DEFINE_FIELD(DCoreActor, vel)

View file

@ -73,7 +73,7 @@ player_struct* duke_checkcursectnums(sectortype* sector)
{
if (!sector) return nullptr;
int pp = checkcursectnums(sector);
return pp ? &ps[pp] : nullptr;
return pp >= 0 ? &ps[pp] : nullptr;
}
DEFINE_ACTION_FUNCTION_NATIVE(_Duke, checkcursectnums, duke_checkcursectnums)

View file

@ -40,7 +40,7 @@ class CoreActor native
native double angle;
native Vector3 vel;
native readonly int16 spritesetpic;
native readonly int16 spritesetindex;
native readonly int spawnindex;
native void setpos(Vector3 newpos, bool relink = true);

View file

@ -36,7 +36,6 @@ class DukeActor : CoreActor native
native int palvals;
native int temp_data[6];
native private int flags1, flags2;
native readonly int16 spritesetindex;
native walltype temp_walls[2];
native sectortype temp_sect, actorstayput;