implement target resets slides flag

This commit is contained in:
tildearrow 2022-02-08 17:24:24 -05:00
parent e0b0da2072
commit a64f8f7a29
1 changed files with 1 additions and 1 deletions

View File

@ -936,7 +936,7 @@ bool DivEngine::nextTick(bool noAccum) {
}
}
if ((chan[i].keyOn || chan[i].keyOff) && chan[i].portaSpeed>0) {
if (dispatchCmd(DivCommand(DIV_CMD_NOTE_PORTA,i,chan[i].portaSpeed,chan[i].portaNote))==2 && chan[i].portaStop) {
if (dispatchCmd(DivCommand(DIV_CMD_NOTE_PORTA,i,chan[i].portaSpeed,chan[i].portaNote))==2 && chan[i].portaStop && song.targetResetsSlides) {
chan[i].portaSpeed=0;
chan[i].oldNote=chan[i].note;
chan[i].note=chan[i].portaNote;