- stop all sounds after exiting level regardless of intermission screen

https://forum.zdoom.org/viewtopic.php?t=67521
This commit is contained in:
alexey.lysiuk 2020-02-23 16:16:23 +02:00
parent 359e7927de
commit 56311b765e
2 changed files with 6 additions and 5 deletions

View file

@ -812,6 +812,12 @@ void G_DoCompleted (void)
// Close the conversation menu if open.
P_FreeStrifeConversations ();
S_StopAllChannels();
for (auto Level : AllLevels())
{
SN_StopAllSequences(Level);
}
if (primaryLevel->DoCompleted(nextlevel, staticWmInfo))
{
gamestate = GS_INTERMISSION;

View file

@ -763,11 +763,6 @@ void WI_Start(wbstartstruct_t *wbstartstruct)
}
}
S_StopAllChannels();
for (auto Level : AllLevels())
{
SN_StopAllSequences(Level);
}
WI_Screen = cls->CreateNew();
ScaleOverrider s;
IFVIRTUALPTRNAME(WI_Screen, "StatusScreen", Start)