mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-28 15:02:01 +00:00
- 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
1 changed files with 7 additions and 2 deletions
|
@ -69,11 +69,16 @@ extend class Actor
|
||||||
while (mo = Actor(it.Next(true)))
|
while (mo = Actor(it.Next(true)))
|
||||||
{
|
{
|
||||||
if (mo.health > 0 && mo != self)
|
if (mo.health > 0 && mo != self)
|
||||||
|
{
|
||||||
|
// Added check for Dehacked and repurposed inventory items.
|
||||||
|
let inv = Inventory(mo);
|
||||||
|
if (inv == null || inv.Owner == null)
|
||||||
{
|
{
|
||||||
// other Keen not dead
|
// other Keen not dead
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
Door_Open(doortag, 16);
|
Door_Open(doortag, 16);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue