From 4e3de466ce65ada69b80d36a92521a64d933ef8c Mon Sep 17 00:00:00 2001 From: tildearrow Date: Mon, 28 Aug 2023 04:10:48 -0500 Subject: [PATCH] C219: looooooool --- src/engine/platform/c140.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/engine/platform/c140.cpp b/src/engine/platform/c140.cpp index b4cc9171..1284a78b 100644 --- a/src/engine/platform/c140.cpp +++ b/src/engine/platform/c140.cpp @@ -237,17 +237,17 @@ void DivPlatformC140::tick(bool sysTick) { if (is219) { if (groupBank[i>>2]!=bank) { groupBank[i>>2]=bank; - } - rWrite(0x1f1+(((3+(i>>2))&3)<<1),groupBank[i>>2]); - // shut everyone else up - for (int j=0; j<4; j++) { - int ch=(i&(~3))|j; - if (chan[ch].active && (i&3)!=j) { - chan[ch].sample=-1; - chan[ch].active=false; - chan[ch].keyOff=true; - chan[ch].macroInit(NULL); - rWrite(0x05+(ch<<4),ctrl); + rWrite(0x1f1+(((3+(i>>2))&3)<<1),groupBank[i>>2]); + // shut everyone else up + for (int j=0; j<4; j++) { + int ch=(i&(~3))|j; + if (chan[ch].active && (i&3)!=j) { + chan[ch].sample=-1; + chan[ch].active=false; + chan[ch].keyOff=true; + chan[ch].macroInit(NULL); + rWrite(0x05+(ch<<4),ctrl); + } } } } else {