From 3c0a865824a1c2437439df7ff4cb220b264528c2 Mon Sep 17 00:00:00 2001 From: Andy Sloane Date: Tue, 3 Nov 2015 09:57:40 -0800 Subject: [PATCH] update the effects code after moving stuff into xm --- xmeffects.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/xmeffects.js b/xmeffects.js index 4c25716..a936bba 100644 --- a/xmeffects.js +++ b/xmeffects.js @@ -103,9 +103,9 @@ function eff_t1_a(ch) { // volume slide } function eff_t0_b(ch, data) { // song jump (untested) - if (data < songpats.length) { + if (data < xm.songpats.length) { cur_songpos = data - cur_pat = songpats[cur_songpos]; + cur_pat = xm.songpats[cur_songpos]; } } @@ -115,9 +115,9 @@ function eff_t0_c(ch, data) { // set volume function eff_t0_d(ch, data) { // pattern jump cur_songpos++; - if (cur_songpos >= songpats.length) - cur_songpos = song_looppos; - cur_pat = songpats[cur_songpos]; + if (cur_songpos >= xm.songpats.length) + cur_songpos = xm.song_looppos; + cur_pat = xm.songpats[cur_songpos]; cur_row = data; }