mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 17:01:28 +00:00
- SW: fixed DeleteNoSoundOwner still checking for sprites as sound origins.
This commit is contained in:
parent
0a9792ac28
commit
a59173ac31
1 changed files with 1 additions and 2 deletions
|
@ -724,11 +724,10 @@ void COVER_SetReverb(int amt)
|
|||
void DeleteNoSoundOwner(DSWActor* actor)
|
||||
{
|
||||
if (!soundEngine) return;
|
||||
SPRITEp sp = &actor->s();
|
||||
|
||||
soundEngine->EnumerateChannels([=](FSoundChan* chan)
|
||||
{
|
||||
if (chan->Source == sp && chan->ChanFlags & CHANF_LOOP)
|
||||
if (chan->Source == actor && chan->ChanFlags & CHANF_LOOP)
|
||||
{
|
||||
soundEngine->StopChannel(chan);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue