OPL: finally fix the carnival night zone bug

TODO: RUN TEST SUITE!
This commit is contained in:
tildearrow 2022-08-14 19:17:03 -05:00
parent cb4417824d
commit 9b6730607e
1 changed files with 7 additions and 0 deletions

View File

@ -872,6 +872,13 @@ int DivPlatformOPL::dispatch(DivCommand c) {
int ops=(slots[3][c.chan]!=255 && chan[c.chan].state.ops==4 && oplType==3)?4:2;
chan[c.chan].fourOp=(ops==4);
if (chan[c.chan].fourOp) {
/*
if (chan[c.chan+1].active) {
chan[c.chan+1].keyOff=true;
chan[c.chan+1].keyOn=false;
chan[c.chan+1].active=false;
}*/
chan[c.chan+1].insChanged=true;
chan[c.chan+1].macroInit(NULL);
}
update4OpMask=true;