- 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:
Christoph Oelckers 2020-09-27 22:23:40 +02:00
parent 043de8c780
commit cd20ecaae0

View file

@ -845,13 +845,14 @@ void G_DoCompleted (void)
// Close the conversation menu if open. // Close the conversation menu if open.
P_FreeStrifeConversations (); P_FreeStrifeConversations ();
bool playinter = primaryLevel->DoCompleted(nextlevel, staticWmInfo);
S_StopAllChannels(); S_StopAllChannels();
for (auto Level : AllLevels()) for (auto Level : AllLevels())
{ {
SN_StopAllSequences(Level); SN_StopAllSequences(Level);
} }
if (primaryLevel->DoCompleted(nextlevel, staticWmInfo)) if (playinter)
{ {
gamestate = GS_INTERMISSION; gamestate = GS_INTERMISSION;
viewactive = false; viewactive = false;