Fix reversing/braking not being mapobjectscaled

This commit is contained in:
toaster 2022-08-09 12:33:59 +01:00
parent 0bcf934f03
commit 2bc67a6151

View file

@ -2005,10 +2005,10 @@ fixed_t K_3dKartMovement(player_t *player, boolean onground, fixed_t forwardmove
finalspeed *= forwardmove/25; finalspeed *= forwardmove/25;
finalspeed /= 2; finalspeed /= 2;
if (forwardmove < 0 && finalspeed > FRACUNIT*2) if (forwardmove < 0 && finalspeed > mapobjectscale*2)
return finalspeed/2; return finalspeed/2;
else if (forwardmove < 0) else if (forwardmove < 0)
return -FRACUNIT/2; return -mapobjectscale/2;
if (finalspeed < 0) if (finalspeed < 0)
finalspeed = 0; finalspeed = 0;