GUI: fix volume macro always being 15

issue #629
This commit is contained in:
tildearrow 2022-08-11 11:30:45 -05:00
parent 01d1556fb4
commit 00ae5b4142

View file

@ -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) { if (ins->type==DIV_INS_FM || ins->type==DIV_INS_MIKEY || ins->type==DIV_INS_MULTIPCM || ins->type==DIV_INS_SU) {
volMax=127; volMax=127;
} }
if (ins->type==DIV_INS_GB && !ins->gb.softEnv) { if (ins->type==DIV_INS_GB) {
volMax=0; if (ins->gb.softEnv) {
} else {
volMax=15; volMax=15;
} else {
volMax=0;
}
} }
if (ins->type==DIV_INS_PET || ins->type==DIV_INS_BEEPER) { if (ins->type==DIV_INS_PET || ins->type==DIV_INS_BEEPER) {
volMax=1; volMax=1;