fix ECxx accuracy

This commit is contained in:
tildearrow 2022-01-19 21:53:09 -05:00
parent 18df843864
commit fee174a65a

View file

@ -862,6 +862,23 @@ bool DivEngine::nextTick(bool noAccum) {
if (--chan[i].cut<1) {
chan[i].oldNote=chan[i].note;
chan[i].note=-1;
chan[i].keyOff=true;
chan[i].keyOn=false;
if (chan[i].stopOnOff) {
chan[i].portaNote=-1;
chan[i].portaSpeed=-1;
chan[i].stopOnOff=false;
}
if (disCont[dispatchOfChan[i]].dispatch->keyOffAffectsPorta(dispatchChanOfChan[i])) {
chan[i].portaNote=-1;
chan[i].portaSpeed=-1;
if (i==2 && sysOfChan[i]==DIV_SYSTEM_SMS) {
chan[i+1].portaNote=-1;
chan[i+1].portaSpeed=-1;
}
}
dispatchCmd(DivCommand(DIV_CMD_PRE_PORTA,i,false));
chan[i].scheduledSlideReset=true;
dispatchCmd(DivCommand(DIV_CMD_NOTE_OFF,i));
}
}