From cd20ecaae0fc16bcfd669957f1dfd50174a5a322 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 27 Sep 2020 22:23:40 +0200 Subject: [PATCH] - 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. --- src/g_level.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/g_level.cpp b/src/g_level.cpp index e480d11a8..ca99e9fa3 100644 --- a/src/g_level.cpp +++ b/src/g_level.cpp @@ -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;