mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-11-10 07:12:03 +00:00
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:
parent
9e3b89c54f
commit
284ae5fab8
1 changed files with 2 additions and 2 deletions
|
@ -3261,7 +3261,7 @@ void P_SetupSignExit(player_t *player)
|
|||
|
||||
// SRB2Kart: Set sign spinning variables
|
||||
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;
|
||||
|
||||
++numfound;
|
||||
|
@ -3289,7 +3289,7 @@ void P_SetupSignExit(player_t *player)
|
|||
|
||||
// SRB2Kart: Set sign spinning variables
|
||||
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;
|
||||
|
||||
++numfound;
|
||||
|
|
Loading…
Reference in a new issue