Resume sounds on unpausing after a window re-focus

This commit is contained in:
James R 2019-03-16 15:50:16 -07:00
parent 1975a9b885
commit 70f40d54cb

View file

@ -615,12 +615,12 @@ static void Impl_HandleWindowEvent(SDL_WindowEvent evt)
{ {
// Tell game we got focus back, resume music if necessary // Tell game we got focus back, resume music if necessary
window_notinfocus = false; window_notinfocus = false;
if (!paused) if (!paused)
{
I_ResumeSong(); //resume it I_ResumeSong(); //resume it
if (cv_gamesounds.value)
S_EnableSound(); if (cv_gamesounds.value)
} S_EnableSound();
if (!firsttimeonmouse) if (!firsttimeonmouse)
{ {