- 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.
This commit is contained in:
drfrag 2020-09-28 00:38:25 +02:00
parent 8671c39358
commit d94cd20f2a

View file

@ -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 ();