shithub: ft2-clone

Download patch

ref: 92209522e99043d9ebb480aa117ea76574acd705
parent: 724a4caff868393ba0c0ba520033470824405c0e
author: Olav Sørensen <[email protected]>
date: Wed Feb 12 18:22:30 EST 2020

STK/UST loop fix

Divide loopstart by two on all STK/UST modules instead of very specific ones.

--- a/src/ft2_module_loader.c
+++ b/src/ft2_module_loader.c
@@ -656,11 +656,8 @@
 		if (s->repL < 2)
 			s->repL = 2;
 
-		/* 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->repS /= 2;
 
 		// fix for poorly converted STK (< v2.5) -> PT/NT modules (FIXME: Worth keeping or not?)