Battle: do not decrease flashing tics in the air

This commit is contained in:
James R 2024-01-11 22:03:10 -08:00
parent 182df7bf44
commit 49f0b31db7

View file

@ -4412,7 +4412,9 @@ void P_PlayerThink(player_t *player)
// Strength counts up to diminish fade.
if (player->flashing && player->flashing < UINT16_MAX &&
(player->spectator || !P_PlayerInPain(player)))
(player->spectator || !P_PlayerInPain(player)) &&
// Battle: flashing tics do not decrease in the air
(!(gametyperules & GTR_BUMPERS) || P_IsObjectOnGround(player->mo)))
{
player->flashing--;
}