- Duke: Replace CraneDef poley with pole.Y calls.

This commit is contained in:
Mitchell Richters 2021-12-30 22:31:36 +11:00
parent 034727d902
commit 19a9fc462f
4 changed files with 4 additions and 5 deletions

View file

@ -648,8 +648,8 @@ void movecrane(DDukeActor *actor, int crane)
case STAT_ZOMBIEACTOR:
case STAT_STANDABLE:
case STAT_PLAYER:
actor->spr.ang = getangle(cpt.pole.X - actor->spr.pos.X, cpt.poley - actor->spr.pos.Y);
SetActor(a2, { cpt.pole.X, cpt.poley, a2->spr.pos.Z });
actor->spr.ang = getangle(cpt.pole.X - actor->spr.pos.X, cpt.pole.Y - actor->spr.pos.Y);
SetActor(a2, { cpt.pole.X, cpt.pole.Y, a2->spr.pos.Z });
actor->temp_data[0]++;
return;
}

View file

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

View file

@ -500,7 +500,7 @@ void initcrane(DDukeActor* actj, DDukeActor* act, int CRANEPOLE)
actk->spr.yrepeat = 128;
apt.pole.X = actk->spr.pos.X;
apt.poley = actk->spr.pos.Y;
apt.pole.Y = actk->spr.pos.Y;
actk->spr.pos = act->spr.pos;
actk->spr.shade = act->spr.shade;

View file

@ -165,7 +165,6 @@ struct CraneDef
{
vec3_t pos;
vec2_t pole;
int pole.X, poley;
TObjPtr<DDukeActor*> poleactor;
};