mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-26 06:11:01 +00:00
Merge branch 'fix-drowning-vanishing' into 'next'
Fix player disappearing when drowning in painstate (resolves #597) Closes #597 See merge request STJr/SRB2!1667
This commit is contained in:
commit
646844bfdc
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue