- 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

View file

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