Merge branch 'fix-brakes' into 'v1'

Make brakes stronger

See merge request KartKrew/Kart!154
This commit is contained in:
wolfs 2019-05-26 20:10:46 -04:00
commit fd9f5b8f58
1 changed files with 3 additions and 2 deletions

View File

@ -5778,10 +5778,11 @@ void K_MoveKartPlayer(player_t *player, boolean onground)
{
if (player->speed > 0 && cmd->forwardmove == 0 && player->mo->friction == 59392)
player->mo->friction += 4608;
if (player->speed > 0 && cmd->forwardmove < 0 && player->mo->friction == 59392)
player->mo->friction += 1608;
}
if (player->speed > 0 && cmd->forwardmove < 0) // change friction while braking no matter what, otherwise it's not any more effective than just letting go off accel
player->mo->friction -= 2048;
// Karma ice physics
if (G_BattleGametype() && player->kartstuff[k_bumper] <= 0)
{