fix some glitches

This commit is contained in:
tildearrow 2022-02-17 03:20:08 -05:00
parent bacf57bb65
commit 79fe54d4b6
2 changed files with 3 additions and 3 deletions

View File

@ -4889,11 +4889,11 @@ void DivEngine::playSub(bool preserveDrift, int goalRow) {
speedAB=false;
playing=true;
for (int i=0; i<song.systemLen; i++) disCont[i].dispatch->setSkipRegisterWrites(true);
while (curOrder<goal) {
while (playing && curOrder<goal) {
if (nextTick(preserveDrift)) break;
}
int oldOrder=curOrder;
while (curRow<goalRow) {
while (playing && curRow<goalRow) {
if (nextTick(preserveDrift)) break;
if (oldOrder!=curOrder) break;
}

View File

@ -859,7 +859,7 @@ void DivEngine::nextRow() {
changeOrd=-1;
}
if (haltOn==DIV_HALT_PATTERN) halted=true;
} else if (++curRow>=song.patLen) {
} else if (playing) if (++curRow>=song.patLen) {
nextOrder();
if (haltOn==DIV_HALT_PATTERN) halted=true;
}