Skip to content

Commit

Permalink
- fixed: Inventory items that are terminated by GoAwayAndDie must be …
Browse files Browse the repository at this point in the history
…removed from the blockmap and sector lists.

Since they were just scheduled for delayed deletion any map related action they can trigger is unwanted.
  • Loading branch information
coelckers committed Jun 15, 2020
1 parent cfd8d07 commit 486e073
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions wadsrc/static/zscript/actors/inventory/inventory.zs
Expand Up @@ -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");
}
}
Expand Down

0 comments on commit 486e073

Please sign in to comment.