Fixed music unpausing when alt-tabbing back.

This commit is contained in:
Major Cooke 2024-01-12 09:23:10 -06:00 committed by Christoph Oelckers
parent 04e6eba9e0
commit d789676b26

View file

@ -1826,7 +1826,8 @@ void S_SetSoundPaused(int state)
if ((state || i_soundinbackground) && !pauseext)
{
S_ResumeSound(true);
if (!paused)
S_ResumeSound(true);
if (GSnd != nullptr)
{
GSnd->SetInactive(SoundRenderer::INACTIVE_Active);