From da60f6ac1d2b896f0a2481c9a95bd1c853a25b45 Mon Sep 17 00:00:00 2001 From: James R Date: Thu, 12 Jan 2023 19:00:13 -0800 Subject: [PATCH] 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. --- src/s_sound.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/s_sound.c b/src/s_sound.c index d45a3fd7d..1c35abcce 100644 --- a/src/s_sound.c +++ b/src/s_sound.c @@ -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(); }