From c23b504d79e1bc41bb2faf0b10737db6bf520328 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Mon, 26 Sep 2022 01:48:09 -0500 Subject: [PATCH] Game Boy: fix zombie mode and macro speed --- src/engine/platform/gb.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/engine/platform/gb.cpp b/src/engine/platform/gb.cpp index fea89c71d..7c1c5d25a 100644 --- a/src/engine/platform/gb.cpp +++ b/src/engine/platform/gb.cpp @@ -432,7 +432,11 @@ int DivPlatformGB::dispatch(DivCommand c) { chan[c.chan].envVol=chan[c.chan].vol; chan[c.chan].soManyHacksToMakeItDefleCompatible=true; } else if (c.chan!=2) { - chan[c.chan].envVol=chan[c.chan].vol; + if (chan[c.chan].std.vol.will && !chan[c.chan].std.vol.finished) { + chan[c.chan].outVol=VOL_SCALE_LINEAR(chan[c.chan].vol&15,MIN(15,chan[c.chan].std.vol.val),15); + } + chan[c.chan].envVol=chan[c.chan].outVol; + if (!chan[c.chan].keyOn) chan[c.chan].killIt=true; chan[c.chan].freqChanged=true; }