Revert "- removed STAT_INVENTORY."

This reverts commit 5ff0abe568.

- use STAT_INVENTORY only for held items.

Seems this was causing some strange issues with hubs, but for items placed in the world it still cannot be allowed to have them in a different statnum.
This commit is contained in:
Christoph Oelckers 2016-08-25 21:41:17 +02:00
commit 9ca6764556
3 changed files with 4 additions and 2 deletions

View file

@ -821,6 +821,7 @@ void AInventory::BecomeItem ()
}
RemoveFromHash ();
flags &= ~MF_SPECIAL;
ChangeStatNum(STAT_INVENTORY);
SetState (FindState("Held"));
}
@ -847,6 +848,7 @@ void AInventory::BecomePickup ()
}
flags = (GetDefault()->flags | MF_DROPPED) & ~MF_COUNTITEM;
renderflags &= ~RF_INVISIBLE;
ChangeStatNum(STAT_DEFAULT);
SetState (SpawnState);
}