This commit is contained in:
Sally Cochenour 2019-02-06 01:31:42 -05:00
parent 094ca5241a
commit 1c3fe3ce83
1 changed files with 11 additions and 5 deletions

View File

@ -1746,11 +1746,17 @@ fixed_t K_GetKartAccel(player_t *player)
UINT16 K_GetKartFlashing(player_t *player)
{
UINT16 tics = flashingtics;
if (G_BattleGametype())
tics *= 2;
tics += (flashingtics/8) * (player->kartspeed);
return tics;
UINT16 tics = flashingtics;
if (!player)
return tics;
if (G_BattleGametype())
tics *= 2;
tics += (flashingtics/8) * (player->kartspeed);
return tics;
}
fixed_t K_3dKartMovement(player_t *player, boolean onground, fixed_t forwardmove)