From 00ae5b4142589d37d5e038e1b8afc287561b0d37 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Thu, 11 Aug 2022 11:30:45 -0500 Subject: [PATCH] GUI: fix volume macro always being 15 issue #629 --- src/gui/insEdit.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/gui/insEdit.cpp b/src/gui/insEdit.cpp index 0d90e3733..55094252f 100644 --- a/src/gui/insEdit.cpp +++ b/src/gui/insEdit.cpp @@ -3737,10 +3737,12 @@ void FurnaceGUI::drawInsEdit() { if (ins->type==DIV_INS_FM || ins->type==DIV_INS_MIKEY || ins->type==DIV_INS_MULTIPCM || ins->type==DIV_INS_SU) { volMax=127; } - if (ins->type==DIV_INS_GB && !ins->gb.softEnv) { - volMax=0; - } else { - volMax=15; + if (ins->type==DIV_INS_GB) { + if (ins->gb.softEnv) { + volMax=15; + } else { + volMax=0; + } } if (ins->type==DIV_INS_PET || ins->type==DIV_INS_BEEPER) { volMax=1;