mirror of https://github.com/ZDoom/gzdoom.git
- added an inventory check to A_KeenDie so that it still works if a patch repurposes a pickup item that may end up in the player's inventory.
This commit is contained in:
parent
9a8e724761
commit
883a6ffe3a
|
@ -70,8 +70,13 @@ extend class Actor
|
|||
{
|
||||
if (mo.health > 0 && mo != self)
|
||||
{
|
||||
// other Keen not dead
|
||||
return;
|
||||
// Added check for Dehacked and repurposed inventory items.
|
||||
let inv = Inventory(mo);
|
||||
if (inv == null || inv.Owner == null)
|
||||
{
|
||||
// other Keen not dead
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
Door_Open(doortag, 16);
|
||||
|
|
Loading…
Reference in New Issue