G_DoCompleted: Call S_StopSounds earlier so legitimate exit condition sound isn't insta-wiped

This commit is contained in:
toaster 2023-03-14 11:52:54 +00:00
parent 276b19e871
commit 5b48c52b65

View file

@ -4143,6 +4143,9 @@ static void G_DoCompleted(void)
if (modeattacking && pausedelay)
pausedelay = 0;
// We do this here so Challenges-related sounds aren't insta-killed
S_StopSounds();
if (legitimateexit && !demo.playback && !mapreset) // (yes you're allowed to unlock stuff this way when the game is modified)
{
UINT8 roundtype = GDGT_CUSTOM;
@ -4221,8 +4224,6 @@ static void G_DoCompleted(void)
if (automapactive)
AM_Stop();
S_StopSounds();
prevmap = (INT16)(gamemap-1);
if (!demo.playback)