From 2abd16f117e1b8f0293282e890e6a5b7959838f9 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Tue, 10 Jan 2017 22:01:29 +0100 Subject: [PATCH] - fixed: Any inventory item that is about to be placed in an inventory must stop all its sounds. --- src/g_inventory/a_pickups.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/g_inventory/a_pickups.cpp b/src/g_inventory/a_pickups.cpp index e7a21fee6..aa00ba8b0 100644 --- a/src/g_inventory/a_pickups.cpp +++ b/src/g_inventory/a_pickups.cpp @@ -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")); }