From 4fc8341cb55ccc3d9e62d6bad155d34797cbb118 Mon Sep 17 00:00:00 2001 From: Indev Date: Sun, 16 Jul 2023 14:37:03 +0300 Subject: [PATCH] Fix sound setting not being applied after game restart --- src/s_sound.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/s_sound.c b/src/s_sound.c index ba14aa24b..75785dac2 100644 --- a/src/s_sound.c +++ b/src/s_sound.c @@ -582,7 +582,7 @@ void S_StartSoundAtVolume(const void *origin_p, sfxenum_t sfx_id, INT32 volume) { continue; } - + recdist = thisdist; i = j; } @@ -1862,20 +1862,20 @@ void S_ResumeAudio(void) void S_DisableSound(void) { - if (sound_started && !sound_disabled) + if (sound_started && !sound_disabled) { - sound_disabled = true; S_StopSounds(); } + sound_disabled = true; } void S_EnableSound(void) { - if (sound_started && sound_disabled) + if (sound_started && sound_disabled) { - sound_disabled = false; S_InitSfxChannels(cv_soundvolume.value); } + sound_disabled = false; } void S_SetMusicVolume(INT32 digvolume, INT32 seqvolume)