mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-28 06:53:58 +00:00
- 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.
This commit is contained in:
parent
cd20ecaae0
commit
cd6ef67209
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue