mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-28 15:02:39 +00:00
- fixed sounds not being serialized for hub travel.
Sound stopping was done in the wrong place - this killed the sound before they could be serialized for hub travel. The sound may only be stopped *after* calling G_DoCompleted.
This commit is contained in:
parent
043de8c780
commit
cd20ecaae0
1 changed files with 2 additions and 1 deletions
|
@ -845,13 +845,14 @@ void G_DoCompleted (void)
|
|||
// Close the conversation menu if open.
|
||||
P_FreeStrifeConversations ();
|
||||
|
||||
bool playinter = primaryLevel->DoCompleted(nextlevel, staticWmInfo);
|
||||
S_StopAllChannels();
|
||||
for (auto Level : AllLevels())
|
||||
{
|
||||
SN_StopAllSequences(Level);
|
||||
}
|
||||
|
||||
if (primaryLevel->DoCompleted(nextlevel, staticWmInfo))
|
||||
if (playinter)
|
||||
{
|
||||
gamestate = GS_INTERMISSION;
|
||||
viewactive = false;
|
||||
|
|
Loading…
Reference in a new issue