- fixed: pickup flash didn't fade out if player was killed by pickup

https://forum.zdoom.org/viewtopic.php?t=66135
This commit is contained in:
alexey.lysiuk 2019-10-16 18:13:01 +03:00
parent c45e8b32d0
commit 89ecd7a964
1 changed files with 1 additions and 1 deletions

View File

@ -790,7 +790,7 @@ class Inventory : Actor
if (player != NULL)
{
PlayPickupSound (player.mo);
if (!bNoScreenFlash)
if (!bNoScreenFlash && player.playerstate != PST_DEAD)
{
player.bonuscount = BONUSADD;
}