- 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 committed by drfrag
parent 8eb09a0099
commit cd74e70739

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");
}
}