SoundOptionsLeft

This commit is contained in:
Dethrace Labs 2025-09-01 08:31:31 +12:00 committed by Dethrace Engineering Department
parent 8db5722174
commit dd031dcf86
1 changed files with 11 additions and 11 deletions

View File

@ -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;
}