C64: really fix porta

This commit is contained in:
tildearrow 2023-10-29 03:54:12 -05:00
parent a0df838427
commit 7fd54775bb

View file

@ -418,7 +418,7 @@ int DivPlatformC64::dispatch(DivCommand c) {
break; break;
case DIV_CMD_PRE_PORTA: case DIV_CMD_PRE_PORTA:
if (chan[c.chan].active && c.value2) { if (chan[c.chan].active && c.value2) {
if (parent->song.resetMacroOnPorta) {// || !chan[c.chan].inPorta) { if (parent->song.resetMacroOnPorta || parent->song.preNoteNoEffect) {
chan[c.chan].macroInit(parent->getIns(chan[c.chan].ins,DIV_INS_C64)); chan[c.chan].macroInit(parent->getIns(chan[c.chan].ins,DIV_INS_C64));
chan[c.chan].keyOn=true; chan[c.chan].keyOn=true;
} }