From cd6ef672091f1cd6eee15ad154118e990bdbfbe8 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 28 Sep 2020 18:38:05 +0200 Subject: [PATCH] - fixed sounds not stopping in sound sequences. The sound sequence code used S_GetSoundPlayingInfo incorrectly, so let it check for a valid sound ID first to restore the old behavior. --- src/sound/s_sndseq.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sound/s_sndseq.cpp b/src/sound/s_sndseq.cpp index 80c1eda581..21e8fc236e 100644 --- a/src/sound/s_sndseq.cpp +++ b/src/sound/s_sndseq.cpp @@ -151,7 +151,7 @@ public: } bool IsPlaying() { - return S_GetSoundPlayingInfo (m_Poly, m_CurrentSoundID); + return m_CurrentSoundID != 0 && S_GetSoundPlayingInfo (m_Poly, m_CurrentSoundID); } void *Source() { @@ -180,7 +180,7 @@ public: } bool IsPlaying() { - return S_GetSoundPlayingInfo (m_Sector, m_CurrentSoundID); + return m_CurrentSoundID != 0 && S_GetSoundPlayingInfo (m_Sector, m_CurrentSoundID); } void *Source() {