mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-10 23:01:59 +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()
|
bool IsPlaying()
|
||||||
{
|
{
|
||||||
return S_GetSoundPlayingInfo (m_Poly, m_CurrentSoundID);
|
return m_CurrentSoundID != 0 && S_GetSoundPlayingInfo (m_Poly, m_CurrentSoundID);
|
||||||
}
|
}
|
||||||
void *Source()
|
void *Source()
|
||||||
{
|
{
|
||||||
|
@ -180,7 +180,7 @@ public:
|
||||||
}
|
}
|
||||||
bool IsPlaying()
|
bool IsPlaying()
|
||||||
{
|
{
|
||||||
return S_GetSoundPlayingInfo (m_Sector, m_CurrentSoundID);
|
return m_CurrentSoundID != 0 && S_GetSoundPlayingInfo (m_Sector, m_CurrentSoundID);
|
||||||
}
|
}
|
||||||
void *Source()
|
void *Source()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue