From 89ecd7a9641fb0cc436218f1e508584db6e9a118 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Wed, 16 Oct 2019 18:13:01 +0300 Subject: [PATCH] - fixed: pickup flash didn't fade out if player was killed by pickup https://forum.zdoom.org/viewtopic.php?t=66135 --- wadsrc/static/zscript/actors/inventory/inventory.zs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wadsrc/static/zscript/actors/inventory/inventory.zs b/wadsrc/static/zscript/actors/inventory/inventory.zs index e8b984d02..98db7e9aa 100644 --- a/wadsrc/static/zscript/actors/inventory/inventory.zs +++ b/wadsrc/static/zscript/actors/inventory/inventory.zs @@ -790,7 +790,7 @@ class Inventory : Actor if (player != NULL) { PlayPickupSound (player.mo); - if (!bNoScreenFlash) + if (!bNoScreenFlash && player.playerstate != PST_DEAD) { player.bonuscount = BONUSADD; }