mirror of
https://github.com/ZDoom/Raze.git
synced 2025-02-20 18:42:26 +00:00
- Duke: Replace CraneDef
z
with pos.Z
calls.
This commit is contained in:
parent
3dfcbafd93
commit
4b1fbf13df
4 changed files with 3 additions and 4 deletions
|
@ -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;
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -164,7 +164,6 @@ struct player_orig
|
|||
struct CraneDef
|
||||
{
|
||||
vec3_t pos;
|
||||
int pos.Y, z;
|
||||
int polex, poley;
|
||||
TObjPtr<DDukeActor*> poleactor;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue