From dd031dcf8649148e8969119ba298ecb5792f9978 Mon Sep 17 00:00:00 2001 From: Dethrace Labs <78985374+dethrace-labs@users.noreply.github.com> Date: Mon, 1 Sep 2025 08:31:31 +1200 Subject: [PATCH] SoundOptionsLeft --- src/DETHRACE/common/options.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/DETHRACE/common/options.c b/src/DETHRACE/common/options.c index 9408eed3..242aed05 100644 --- a/src/DETHRACE/common/options.c +++ b/src/DETHRACE/common/options.c @@ -153,18 +153,18 @@ int SoundOptionsLeft(int* pCurrent_choice, int* pCurrent_mode) { int old_value; int* the_value; - if (*pCurrent_choice == 2) { - return 0; + if (*pCurrent_choice != 2) { + + the_value = (*pCurrent_choice == 0) ? &gProgram_state.music_volume : &gProgram_state.effects_volume; + old_value = *the_value; + *the_value -= 1; + if (*the_value < 0) { + *the_value = 0; + } + SetSoundVolumes(); + DRS3StartSound(gEffects_outlet, 3000); + MoveDialFromTo(*pCurrent_choice, 4 * old_value, 4 * *the_value); } - the_value = (*pCurrent_choice == 0) ? &gProgram_state.music_volume : &gProgram_state.effects_volume; - old_value = *the_value; - *the_value -= 1; - if (*the_value < 0) { - *the_value = 0; - } - SetSoundVolumes(); - DRS3StartSound(gEffects_outlet, 3000); - MoveDialFromTo(*pCurrent_choice, 4 * old_value, 4 * *the_value); return 0; }