Skip to content

Commit

Permalink
Kill me
Browse files Browse the repository at this point in the history
  • Loading branch information
TehRealSalt committed Feb 6, 2019
1 parent 094ca52 commit 1c3fe3c
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions src/k_kart.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1c3fe3c

Please sign in to comment.