- fixed: Any inventory item that is about to be placed in an inventory must stop all its sounds.

This commit is contained in:
Christoph Oelckers 2017-01-10 22:01:29 +01:00
parent 3e4f799bbc
commit 2abd16f117

View file

@ -645,6 +645,8 @@ void AInventory::BecomeItem ()
RemoveFromHash ();
flags &= ~MF_SPECIAL;
ChangeStatNum(STAT_INVENTORY);
// stop all sounds this item is playing.
for(int i = 1;i<=7;i++) S_StopSound(this, i);
SetState (FindState("Held"));
}