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.
This commit is contained in:
toaster 2021-02-20 16:05:12 +00:00 committed by NepDisk
parent 1551efb70d
commit dc47f7e64d

View file

@ -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))
{