Fix the bracketing on the autobrake calculation.

This commit is contained in:
toasterbabe 2017-09-15 20:34:46 +01:00
parent f90d595332
commit 725e015a19

View file

@ -9825,7 +9825,7 @@ void P_PlayerThink(player_t *player)
&& !(cmd->forwardmove || cmd->sidemove) && !(cmd->forwardmove || cmd->sidemove)
&& (player->rmomx || player->rmomy)) && (player->rmomx || player->rmomy))
{ {
fixed_t acceleration = player->accelstart + (FixedDiv(player->speed, player->mo->scale)>>FRACBITS) * player->acceleration * player->thrustfactor * 20; fixed_t acceleration = (player->accelstart + (FixedDiv(player->speed, player->mo->scale)>>FRACBITS) * player->acceleration) * player->thrustfactor * 20;
angle_t moveAngle = R_PointToAngle2(0, 0, player->rmomx, player->rmomy); angle_t moveAngle = R_PointToAngle2(0, 0, player->rmomx, player->rmomy);
if (!currentlyonground) if (!currentlyonground)