mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-23 04:22:34 +00:00
- stop all sounds after exiting level regardless of intermission screen
https://forum.zdoom.org/viewtopic.php?t=67521
This commit is contained in:
parent
359e7927de
commit
56311b765e
2 changed files with 6 additions and 5 deletions
|
@ -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;
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue