- Duke: Replace CraneDef z with pos.Z calls.

This commit is contained in:
Mitchell Richters 2021-12-30 22:29:46 +11:00
parent 3dfcbafd93
commit 4b1fbf13df
4 changed files with 3 additions and 4 deletions

View file

@ -745,7 +745,7 @@ void movecrane(DDukeActor *actor, int crane)
if ((sectp->floorz - actor->spr.pos.Z) > 8192)
actor->spr.picnum++;
if (actor->spr.pos.Z < cpt.z)
if (actor->spr.pos.Z < cpt.pos.Z)
{
actor->temp_data[0]++;
actor->spr.xvel = 0;

View file

@ -69,7 +69,7 @@ FSerializer& Serialize(FSerializer& arc, const char* keyname, CraneDef& w, Crane
{
arc("x", w.pos.X)
("y", w.pos.Y)
("z", w.z)
("z", w.pos.Z)
("polex", w.polex)
("poley", w.poley)
("pole", w.poleactor)

View file

@ -484,7 +484,7 @@ void initcrane(DDukeActor* actj, DDukeActor* act, int CRANEPOLE)
auto& apt = cranes[act->temp_data[4]];
apt.pos.X = act->spr.pos.X;
apt.pos.Y = act->spr.pos.Y;
apt.z = act->spr.pos.Z;
apt.pos.Z = act->spr.pos.Z;
apt.poleactor = nullptr;
DukeStatIterator it(STAT_DEFAULT);

View file

@ -164,7 +164,6 @@ struct player_orig
struct CraneDef
{
vec3_t pos;
int pos.Y, z;
int polex, poley;
TObjPtr<DDukeActor*> poleactor;
};