update the effects code after moving stuff into xm
This commit is contained in:
parent
fd52b21e3f
commit
3c0a865824
1 changed files with 5 additions and 5 deletions
10
xmeffects.js
10
xmeffects.js
|
|
@ -103,9 +103,9 @@ function eff_t1_a(ch) { // volume slide
|
||||||
}
|
}
|
||||||
|
|
||||||
function eff_t0_b(ch, data) { // song jump (untested)
|
function eff_t0_b(ch, data) { // song jump (untested)
|
||||||
if (data < songpats.length) {
|
if (data < xm.songpats.length) {
|
||||||
cur_songpos = data
|
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
|
function eff_t0_d(ch, data) { // pattern jump
|
||||||
cur_songpos++;
|
cur_songpos++;
|
||||||
if (cur_songpos >= songpats.length)
|
if (cur_songpos >= xm.songpats.length)
|
||||||
cur_songpos = song_looppos;
|
cur_songpos = xm.song_looppos;
|
||||||
cur_pat = songpats[cur_songpos];
|
cur_pat = xm.songpats[cur_songpos];
|
||||||
cur_row = data;
|
cur_row = data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue