mirror of
https://github.com/DrBeef/Raze.git
synced 2025-03-21 00:40:51 +00:00
- actor interface fixes.
This commit is contained in:
parent
e62b79c7c9
commit
660c546266
4 changed files with 3 additions and 4 deletions
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue