mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2025-02-18 09:31:09 +00:00
- fixed: Any inventory item that is about to be placed in an inventory must stop all its sounds.
This commit is contained in:
parent
1061b34721
commit
bc6530a3ce
1 changed files with 2 additions and 0 deletions
|
@ -644,6 +644,8 @@ void AInventory::BecomeItem ()
|
||||||
RemoveFromHash ();
|
RemoveFromHash ();
|
||||||
flags &= ~MF_SPECIAL;
|
flags &= ~MF_SPECIAL;
|
||||||
ChangeStatNum(STAT_INVENTORY);
|
ChangeStatNum(STAT_INVENTORY);
|
||||||
|
// stop all sounds this item is playing.
|
||||||
|
for(int i = 1;i<=7;i++) S_StopSound(this, i);
|
||||||
SetState (FindState("Held"));
|
SetState (FindState("Held"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue