- added temp_pos to DDukeActor

Same reasons as for temp_angle apply.
This commit is contained in:
Christoph Oelckers 2022-08-29 23:13:16 +02:00
parent cceecb4ab6
commit bdeb056727
3 changed files with 3 additions and 0 deletions

View file

@ -315,6 +315,7 @@ void DDukeActor::Serialize(FSerializer& arc)
.Array("temp_data", temp_data, 6)
.Array("temo_wall", temp_walls, 2)
("temp_angle", temp_angle)
("temp_pos", temp_pos)
("temp_sect", temp_sect)
("uservars", uservars)
("flags1", flags1)

View file

@ -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_actor = nullptr;
act->temp_angle = nullAngle;
act->temp_pos = DVector3(0, 0, 0);
if (wallswitchcheck(act) && (act->spr.cstat & CSTAT_SPRITE_ALIGNMENT_WALL))
{

View file

@ -63,6 +63,7 @@ public:
walltype* temp_walls[2]; // SE20 + SE128
sectortype* temp_sect, *actorstayput;
DAngle temp_angle; // only used by TRIPBOMB
DVector3 temp_pos; // used by TRIPBOMB and SE_26.
TObjPtr<DDukeActor*> temp_actor, seek_actor;