Fix player disappearing when drowning in painstate

This commit is contained in:
Radicalicious 2021-12-03 23:20:07 -06:00
parent 1acd0f6bac
commit 86edb1e4ca

View file

@ -12206,7 +12206,7 @@ void P_PlayerThink(player_t *player)
player->losstime--;
// Flash player after being hit.
if (player->powers[pw_flashing] > 0 && player->powers[pw_flashing] < flashingtics && (leveltime & 1))
if (player->powers[pw_flashing] > 0 && player->powers[pw_flashing] < flashingtics && (leveltime & 1) && player->playerstate == PST_LIVE)
player->mo->flags2 |= MF2_DONTDRAW;
else
player->mo->flags2 &= ~MF2_DONTDRAW;