Fix playsoundsifunfocused callback

Just a minor bug. If playsoundsifunfocused was changed
from "Yes" to "Yes" while the window is unfocused, then
sounds would stop briefly.
This commit is contained in:
James R 2023-01-12 19:00:13 -08:00
parent eb8d03f479
commit da60f6ac1d

View file

@ -2680,7 +2680,7 @@ static void PlaySoundIfUnfocused_OnChange(void)
if (!cv_gamesounds.value)
return;
if (window_notinfocus && cv_playsoundifunfocused.value)
if (window_notinfocus && !cv_playsoundifunfocused.value)
S_StopSounds();
}