From acbd08d5a6e2c08cf75ffb5ebbf962a791b2e98f Mon Sep 17 00:00:00 2001 From: techmetx11 Date: Fri, 19 Apr 2024 18:30:06 +0100 Subject: [PATCH] Fix "jump to next pattern" not working on songs that have no effects or multiple effects --- src/engine/fileOps/tfm.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/engine/fileOps/tfm.cpp b/src/engine/fileOps/tfm.cpp index 8f9be72a5..8a6880b29 100644 --- a/src/engine/fileOps/tfm.cpp +++ b/src/engine/fileOps/tfm.cpp @@ -265,11 +265,6 @@ void TFMParsePattern(struct TFMParsePatternInfo info) { } } - // put a "jump to next pattern" effect if the pattern is smaller than the maximum pattern length - if (info.patLens[i]!=0 && info.patLens[i]subsong[0]->patLen) { - pat->data[info.patLens[i]-1][8]=0x0D; - pat->data[info.patLens[i]-1][9]=0x00; - } // volume info.reader->read(patDataBuf,256); @@ -445,6 +440,12 @@ void TFMParsePattern(struct TFMParsePatternInfo info) { } } info.ds->subsong[0]->pat[j].effectCols=(usedEffectsCol*2)+1; + + // put a "jump to next pattern" effect if the pattern is smaller than the maximum pattern length + if (info.patLens[i]!=0 && info.patLens[i]subsong[0]->patLen) { + pat->data[info.patLens[i]-1][4+(usedEffectsCol*4)]=0x0D; + pat->data[info.patLens[i]-1][5+(usedEffectsCol*4)]=0x00; + } } } }