From d94cd20f2af215a5643b4218eb3aa9220c175565 Mon Sep 17 00:00:00 2001 From: drfrag Date: Mon, 28 Sep 2020 00:38:25 +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. --- src/g_level.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/g_level.cpp b/src/g_level.cpp index ba3c83121..19a4d607c 100644 --- a/src/g_level.cpp +++ b/src/g_level.cpp @@ -801,9 +801,6 @@ void G_DoCompleted (void) if (automapactive) AM_Stop (); - S_StopAllChannels(); - SN_StopAllSequences(); - wminfo.finished_ep = level.cluster - 1; wminfo.LName0 = TexMan.CheckForTexture(level.info->PName, ETextureType::MiscPatch); if (!(level.info->flags3 & LEVEL3_HIDEAUTHORNAME)) wminfo.thisauthor = level.info->AuthorName; @@ -927,6 +924,9 @@ void G_DoCompleted (void) finishstate = mode; + S_StopAllChannels(); + SN_StopAllSequences(); + if (!ShouldDoIntermission(nextcluster, thiscluster)) { G_WorldDone ();