From 446bc1018c86a4a0e08244a148c775cf986e148e Mon Sep 17 00:00:00 2001 From: Leonard2 Date: Sat, 16 Jul 2016 15:22:36 +0200 Subject: [PATCH] Fixed: weapons didn't clear their flash layer when the player died --- src/p_pspr.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/p_pspr.cpp b/src/p_pspr.cpp index 4d5ab660b..bad9c2d73 100644 --- a/src/p_pspr.cpp +++ b/src/p_pspr.cpp @@ -1085,9 +1085,8 @@ DEFINE_ACTION_FUNCTION(AInventory, A_Lower) } if (player->playerstate == PST_DEAD) { // Player is dead, so don't bring up a pending weapon - psp->y = WEAPONBOTTOM; - // Player is dead, so keep the weapon off screen + P_SetPsprite(player, PSP_FLASH, nullptr); psp->SetState(nullptr); return 0; }