- fixed: Inventory items that are terminated by GoAwayAndDie must be removed from the blockmap and sector lists.

Since they were just scheduled for delayed deletion any map related action they can trigger is unwanted.
This commit is contained in:
Christoph Oelckers 2020-06-16 01:11:08 +02:00
parent cfd8d07bf8
commit 486e07300c

View file

@ -986,6 +986,10 @@ class Inventory : Actor
if (!GoAway ())
{
bSpecial = false;
if (!bNoBlockmap || !bNoSector) // make sure that the item no longer interacts with the world for the short rest of its life.
{
A_ChangeLinkFlags(1, 1);
}
SetStateLabel("HoldAndDestroy");
}
}