mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-12-11 21:21:47 +00:00
- 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:
parent
cfd8d07bf8
commit
486e07300c
1 changed files with 4 additions and 0 deletions
|
@ -986,6 +986,10 @@ class Inventory : Actor
|
||||||
if (!GoAway ())
|
if (!GoAway ())
|
||||||
{
|
{
|
||||||
bSpecial = false;
|
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");
|
SetStateLabel("HoldAndDestroy");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue