mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-11-10 07:12:03 +00:00
Fix reversing/braking not being mapobjectscaled
This commit is contained in:
parent
0bcf934f03
commit
2bc67a6151
1 changed files with 2 additions and 2 deletions
|
@ -2005,10 +2005,10 @@ fixed_t K_3dKartMovement(player_t *player, boolean onground, fixed_t forwardmove
|
|||
finalspeed *= forwardmove/25;
|
||||
finalspeed /= 2;
|
||||
|
||||
if (forwardmove < 0 && finalspeed > FRACUNIT*2)
|
||||
if (forwardmove < 0 && finalspeed > mapobjectscale*2)
|
||||
return finalspeed/2;
|
||||
else if (forwardmove < 0)
|
||||
return -FRACUNIT/2;
|
||||
return -mapobjectscale/2;
|
||||
|
||||
if (finalspeed < 0)
|
||||
finalspeed = 0;
|
||||
|
|
Loading…
Reference in a new issue