mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-22 09:11:21 +00:00
Reset old_z in MT_LOCKON think
Fixes interpolation artifacting due to spawn pos.
This commit is contained in:
parent
f66cedf1fc
commit
813ed81a37
1 changed files with 6 additions and 0 deletions
|
@ -7800,6 +7800,9 @@ static void P_MobjSceneryThink(mobj_t *mobj)
|
|||
mobj->z = mobj->target->z + mobj->target->height + FixedMul((16 + abs((signed)(leveltime % TICRATE) - TICRATE/2))*FRACUNIT, mobj->target->scale);
|
||||
else
|
||||
mobj->z = mobj->target->z - FixedMul((16 + abs((signed)(leveltime % TICRATE) - TICRATE/2))*FRACUNIT, mobj->target->scale) - mobj->height;
|
||||
|
||||
mobj->old_z = mobj->z;
|
||||
|
||||
break;
|
||||
case MT_LOCKONINF:
|
||||
if (!(mobj->flags2 & MF2_STRONGBOX))
|
||||
|
@ -7811,6 +7814,9 @@ static void P_MobjSceneryThink(mobj_t *mobj)
|
|||
mobj->z = mobj->threshold + FixedMul((16 + abs((signed)(leveltime % TICRATE) - TICRATE/2))*FRACUNIT, mobj->scale);
|
||||
else
|
||||
mobj->z = mobj->threshold - FixedMul((16 + abs((signed)(leveltime % TICRATE) - TICRATE/2))*FRACUNIT, mobj->scale);
|
||||
|
||||
mobj->old_z = mobj->z;
|
||||
|
||||
break;
|
||||
case MT_DROWNNUMBERS:
|
||||
if (!P_DrownNumbersSceneryThink(mobj))
|
||||
|
|
Loading…
Reference in a new issue