fix 0Bxx and 0Dxx commands

now wiz lab and sixeight-v2 play correctly
TODO: fix walkSong
This commit is contained in:
tildearrow 2022-01-27 00:29:37 -05:00
parent 0e633ea69b
commit 8edcbc8d39

View file

@ -509,13 +509,13 @@ void DivEngine::processRow(int i, bool afterDelay) {
if (effectVal>0) speed2=effectVal;
break;
case 0x0b: // change order
if (changeOrd<0) {
if (changeOrd==-1) {
changeOrd=effectVal;
changePos=0;
}
break;
case 0x0d: // next order
if (changeOrd<0) {
if (changeOrd<0 && curOrder<(song.ordersLen-1)) {
changeOrd=-2;
changePos=effectVal;
}