Fixed: weapons didn't clear their flash layer when the player died

This commit is contained in:
Leonard2 2016-07-16 15:22:36 +02:00 committed by Christoph Oelckers
parent e482a54389
commit 446bc1018c

View file

@ -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;
}