From dc47f7e64dea43ca81dfaa1ba57c99b4c039934f Mon Sep 17 00:00:00 2001 From: toaster Date: Sat, 20 Feb 2021 16:05:12 +0000 Subject: [PATCH] Fixed flashingtics not working if you've never taken any damage in a match before. Two notable consequences of this bug: * The delay when pressing the item button as a spectator to toggle PF_WANTSTOJOIN was not present, leading to a rapid toggle and spurious changeteam commands. * Lightsnaking through map hazards such as Lavender Shrine's stabbies caused you extra spicy unavoidable pain. --- src/k_kart.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/k_kart.c b/src/k_kart.c index f37fc2d36..edcb71023 100644 --- a/src/k_kart.c +++ b/src/k_kart.c @@ -7276,7 +7276,10 @@ void K_KartPlayerThink(player_t *player, ticcmd_t *cmd) || player->squishedtimer != 0 || player->flipovertimer != 0) { - player->flashing = K_GetKartFlashing(player); + if (( player->spinouttype & KSPIN_IFRAMES ) == 0) + player->flashing = 0; + else + player->flashing = K_GetKartFlashing(player); } else if (player->flashing >= K_GetKartFlashing(player)) {