mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-13 07:57:52 +00:00
Change IsSourcePlayingSomething to handle overlapping sounds.
This commit is contained in:
parent
0ba6816622
commit
9430e1556f
1 changed files with 2 additions and 2 deletions
|
@ -1155,9 +1155,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