From 56aa4b28fb00cd51ac80797f1cfb1d881bb9fb95 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Tue, 1 Mar 2022 23:28:05 -0500 Subject: [PATCH] tiny drums mode fix --- src/engine/platform/opll.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/engine/platform/opll.cpp b/src/engine/platform/opll.cpp index 08d46cf9d..651ff4b7d 100644 --- a/src/engine/platform/opll.cpp +++ b/src/engine/platform/opll.cpp @@ -405,8 +405,10 @@ int DivPlatformOPLL::dispatch(DivCommand c) { } } else { if (c.chan>=6) { - drums=false; - immWrite(0x0e,0); + if (drums) { + drums=false; + immWrite(0x0e,0); + } } rWrite(0x30+c.chan,((15-(chan[c.chan].outVol*(15-chan[c.chan].state.op[1].tl))/15)&15)|(chan[c.chan].state.opllPreset<<4)); } @@ -642,6 +644,7 @@ void DivPlatformOPLL::forceIns() { if (chan[i].active) { chan[i].keyOn=true; chan[i].freqChanged=true; + chan[i].insChanged=true; } } }