mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-16 01:11:44 +00:00
- added temp_pos to DDukeActor
Same reasons as for temp_angle apply.
This commit is contained in:
parent
cceecb4ab6
commit
bdeb056727
3 changed files with 3 additions and 0 deletions
|
@ -315,6 +315,7 @@ void DDukeActor::Serialize(FSerializer& arc)
|
||||||
.Array("temp_data", temp_data, 6)
|
.Array("temp_data", temp_data, 6)
|
||||||
.Array("temo_wall", temp_walls, 2)
|
.Array("temo_wall", temp_walls, 2)
|
||||||
("temp_angle", temp_angle)
|
("temp_angle", temp_angle)
|
||||||
|
("temp_pos", temp_pos)
|
||||||
("temp_sect", temp_sect)
|
("temp_sect", temp_sect)
|
||||||
("uservars", uservars)
|
("uservars", uservars)
|
||||||
("flags1", flags1)
|
("flags1", flags1)
|
||||||
|
|
|
@ -161,6 +161,7 @@ bool initspriteforspawn(DDukeActor* act)
|
||||||
act->temp_data[0] = act->temp_data[1] = act->temp_data[2] = act->temp_data[3] = act->temp_data[4] = act->temp_data[5] = 0;
|
act->temp_data[0] = act->temp_data[1] = act->temp_data[2] = act->temp_data[3] = act->temp_data[4] = act->temp_data[5] = 0;
|
||||||
act->temp_actor = nullptr;
|
act->temp_actor = nullptr;
|
||||||
act->temp_angle = nullAngle;
|
act->temp_angle = nullAngle;
|
||||||
|
act->temp_pos = DVector3(0, 0, 0);
|
||||||
|
|
||||||
if (wallswitchcheck(act) && (act->spr.cstat & CSTAT_SPRITE_ALIGNMENT_WALL))
|
if (wallswitchcheck(act) && (act->spr.cstat & CSTAT_SPRITE_ALIGNMENT_WALL))
|
||||||
{
|
{
|
||||||
|
|
|
@ -63,6 +63,7 @@ public:
|
||||||
walltype* temp_walls[2]; // SE20 + SE128
|
walltype* temp_walls[2]; // SE20 + SE128
|
||||||
sectortype* temp_sect, *actorstayput;
|
sectortype* temp_sect, *actorstayput;
|
||||||
DAngle temp_angle; // only used by TRIPBOMB
|
DAngle temp_angle; // only used by TRIPBOMB
|
||||||
|
DVector3 temp_pos; // used by TRIPBOMB and SE_26.
|
||||||
|
|
||||||
TObjPtr<DDukeActor*> temp_actor, seek_actor;
|
TObjPtr<DDukeActor*> temp_actor, seek_actor;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue