From 1c3fe3ce83bc0af01265a3950b04394b74a0ea47 Mon Sep 17 00:00:00 2001 From: Sally Cochenour Date: Wed, 6 Feb 2019 01:31:42 -0500 Subject: [PATCH] Kill me --- src/k_kart.c | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src/k_kart.c b/src/k_kart.c index ae200f74b..49fd54e61 100644 --- a/src/k_kart.c +++ b/src/k_kart.c @@ -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)