fix artificial intelligence bomb

and a couple of songs that used 02xx after note off
This commit is contained in:
tildearrow 2022-02-08 22:46:58 -05:00
parent fd8b144185
commit f1730baefa
10 changed files with 32 additions and 12 deletions

View file

@ -271,9 +271,11 @@ int DivPlatformC64::dispatch(DivCommand c) {
chan[c.chan].note=c.value;
break;
case DIV_CMD_PRE_PORTA:
if (parent->song.resetMacroOnPorta) {
chan[c.chan].std.init(parent->getIns(chan[c.chan].ins));
chan[c.chan].keyOn=true;
if (chan[c.chan].active) {
if (parent->song.resetMacroOnPorta) {
chan[c.chan].std.init(parent->getIns(chan[c.chan].ins));
chan[c.chan].keyOn=true;
}
}
chan[c.chan].inPorta=c.value;
break;