Don't pause music when pausing the game / Fix victory music in SP.

Victory music doesn't work in A24 SP. That's because the modal pauses
the game, and pausing the game pauses music.
This has been the case since c9a5d5cee5.

Auto-pausing the game (structree, ...) didn't really happen in the past,
but A24 makes it relatively common, and I think pausing the music is a
bit jarring then, so this simply removes that.

Reported by: Langbart
Fixes #5941

Differential Revision: https://code.wildfiregames.com/D3433
This was SVN commit r24744.
This commit is contained in:
wraitii
2021-01-21 09:34:20 +00:00
parent 4af962618e
commit 37729586dc
2 changed files with 7 additions and 1 deletions
+4 -1
View File
@@ -120,7 +120,10 @@ void JSI_Game::SetPaused(ScriptInterface::CmptPrivate* pCmptPrivate, bool pause,
#if CONFIG2_AUDIO
if (g_SoundManager)
g_SoundManager->Pause(pause);
{
g_SoundManager->PauseAmbient(pause);
g_SoundManager->PauseAction(pause);
}
#endif
if (g_NetClient && sendMessage)