Fix an interpolation issue with the Signpost

Because its z was being set but its old z wasn't being overwritten, at high enough refresh rates you can see it appear above its starting position for a single frame.

Done by modifying old_z instead of using P_SetOrigin for consistency of avoiding CheckPosition.
This commit is contained in:
toaster 2022-08-04 15:57:44 +01:00
parent 9e3b89c54f
commit 284ae5fab8

View file

@ -3261,7 +3261,7 @@ void P_SetupSignExit(player_t *player)
// SRB2Kart: Set sign spinning variables // SRB2Kart: Set sign spinning variables
thing->movefactor = thing->z; thing->movefactor = thing->z;
thing->z += (768*thing->scale) * P_MobjFlip(thing); thing->z = thing->old_z = thing->z + (768*thing->scale) * P_MobjFlip(thing);
thing->movecount = 1; thing->movecount = 1;
++numfound; ++numfound;
@ -3289,7 +3289,7 @@ void P_SetupSignExit(player_t *player)
// SRB2Kart: Set sign spinning variables // SRB2Kart: Set sign spinning variables
thing->movefactor = thing->z; thing->movefactor = thing->z;
thing->z += (768*thing->scale) * P_MobjFlip(thing); thing->z = thing->old_z = thing->z + (768*thing->scale) * P_MobjFlip(thing);
thing->movecount = 1; thing->movecount = 1;
++numfound; ++numfound;