mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-01-18 22:51:39 +00:00
Change IsSourcePlayingSomething to handle overlapping sounds.
This commit is contained in:
parent
bc1d728140
commit
9e212c3582
1 changed files with 2 additions and 2 deletions
|
@ -1156,9 +1156,9 @@ bool SoundEngine::IsSourcePlayingSomething (int sourcetype, const void *actor, i
|
|||
{
|
||||
if (chan->SourceType == sourcetype && chan->Source == actor)
|
||||
{
|
||||
if (channel == 0 || chan->EntChannel == channel)
|
||||
if ((channel == 0 || chan->EntChannel == channel) && (sound_id <= 0 || chan->OrgID == sound_id))
|
||||
{
|
||||
return sound_id <= 0 || chan->OrgID == sound_id;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue