fix Dxx effect

argument is BCD, so 0x10 actually means 10 decimal
This commit is contained in:
Andy Sloane 2015-11-19 20:24:00 -08:00
commit 89e6b9c554
2 changed files with 17 additions and 8 deletions

View file

@ -122,7 +122,7 @@ function eff_t0_d(ch, data) { // pattern jump
if (player.cur_songpos >= player.xm.songpats.length)
player.cur_songpos = player.xm.song_looppos;
player.cur_pat = player.xm.songpats[player.cur_songpos];
player.cur_row = data - 1;
player.cur_row = (data >> 4) * 10 + (data & 0x0f) - 1;
}
function eff_t0_e(ch, data) { // extended effects!