mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-28 06:53:40 +00:00
Fixed: weapons didn't clear their flash layer when the player died
This commit is contained in:
parent
e482a54389
commit
446bc1018c
1 changed files with 1 additions and 2 deletions
|
@ -1085,9 +1085,8 @@ DEFINE_ACTION_FUNCTION(AInventory, A_Lower)
|
||||||
}
|
}
|
||||||
if (player->playerstate == PST_DEAD)
|
if (player->playerstate == PST_DEAD)
|
||||||
{ // Player is dead, so don't bring up a pending weapon
|
{ // Player is dead, so don't bring up a pending weapon
|
||||||
psp->y = WEAPONBOTTOM;
|
|
||||||
|
|
||||||
// Player is dead, so keep the weapon off screen
|
// Player is dead, so keep the weapon off screen
|
||||||
|
P_SetPsprite(player, PSP_FLASH, nullptr);
|
||||||
psp->SetState(nullptr);
|
psp->SetState(nullptr);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue