Skip to content

Commit

Permalink
STK/UST loop fix
Browse files Browse the repository at this point in the history
Divide loopstart by two on all STK/UST modules instead of very specific ones.
  • Loading branch information
8bitbubsy committed Feb 12, 2020
1 parent 9b62d4d commit 3706967
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/pt2_modloader.c
Original file line number Diff line number Diff line change
Expand Up @@ -459,11 +459,8 @@ module_t *modLoad(UNICHAR *fileName)
s->loopLength = (uint16_t)loopLength;
}

/* Ultimate SoundTracker before version 2.5 had loopStart in bytes, not words
** XXX: This has to be verified... It's possible that it was before that,
** and that this breaks some modules.
*/
if (mightBeSTK && !lateSTKVerFlag)
// in The Ultimate SoundTracker, sample loop start is in bytes, not words
if (mightBeSTK)
s->loopStart /= 2;

// fix for poorly converted STK (< v2.5) -> PT/NT modules (FIXME: Worth keeping or not?)
Expand Down

0 comments on commit 3706967

Please sign in to comment.