Apply sprzoff to Jawz reticle

Fixes alignment for UFO Catcher, and probably Garden Top.
This commit is contained in:
James R 2023-08-12 18:52:06 -07:00
parent dc4922e41b
commit 2c8b889eee
2 changed files with 2 additions and 0 deletions

View file

@ -8608,6 +8608,7 @@ void K_KartPlayerAfterThink(player_t *player)
}
ret = P_SpawnMobj(targ->x, targ->y, targ->z, MT_PLAYERRETICULE);
ret->sprzoff = targ->sprzoff;
ret->old_x = targ->old_x;
ret->old_y = targ->old_y;
ret->old_z = targ->old_z;

View file

@ -7910,6 +7910,7 @@ static boolean P_MobjRegularThink(mobj_t *mobj)
return false;
}
P_MoveOrigin(mobj, mobj->target->x, mobj->target->y, mobj->target->z);
mobj->sprzoff = mobj->target->sprzoff;
mobj->old_x = mobj->target->old_x;
mobj->old_y = mobj->target->old_y;
mobj->old_z = mobj->target->old_z;