mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-12-04 01:41:56 +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
d94cd20f2a
commit
85a3cef7fd
1 changed files with 2 additions and 2 deletions
|
@ -153,7 +153,7 @@ public:
|
|||
}
|
||||
bool IsPlaying()
|
||||
{
|
||||
return S_GetSoundPlayingInfo (m_Poly, m_CurrentSoundID);
|
||||
return m_CurrentSoundID != 0 && S_GetSoundPlayingInfo (m_Poly, m_CurrentSoundID);
|
||||
}
|
||||
void *Source()
|
||||
{
|
||||
|
@ -182,7 +182,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