mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 23:02:08 +00:00
- Fixed: 0 duration A_Lower loops could cause an infinite loop since A_Lower checked if the player was dead in two different ways and returned before the second one.
SVN r4029 (trunk)
This commit is contained in:
parent
3e1aa40461
commit
76b5757dab
1 changed files with 2 additions and 4 deletions
|
@ -818,10 +818,8 @@ DEFINE_ACTION_FUNCTION(AInventory, A_Lower)
|
|||
if (player->playerstate == PST_DEAD)
|
||||
{ // Player is dead, so don't bring up a pending weapon
|
||||
psp->sy = WEAPONBOTTOM;
|
||||
return;
|
||||
}
|
||||
if (player->health <= 0)
|
||||
{ // Player is dead, so keep the weapon off screen
|
||||
|
||||
// Player is dead, so keep the weapon off screen
|
||||
P_SetPsprite (player, ps_weapon, NULL);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue