- moved sound sequence head of list into FLevelLocals.

This commit is contained in:
Christoph Oelckers 2019-01-28 23:53:40 +01:00
commit 50d59e99cb
9 changed files with 67 additions and 62 deletions

View file

@ -1751,7 +1751,10 @@ void S_StopSound (const FPolyObj *poly, int channel)
void S_StopAllChannels ()
{
SN_StopAllSequences();
for (auto Level : AllLevels())
{
SN_StopAllSequences(Level);
}
FSoundChan *chan = Channels;
while (chan != NULL)
@ -2178,8 +2181,10 @@ void S_UpdateSounds (AActor *listenactor)
chan->ChanFlags &= ~CHAN_JUSTSTARTED;
}
SN_UpdateActiveSequences();
for (auto Level : AllLevels())
{
SN_UpdateActiveSequences(Level);
}
GSnd->UpdateListener(&listener);
GSnd->UpdateSounds();