This commit is contained in:
Yoshman29
2022-12-24 13:05:55 +01:00
parent 7d7e0619a6
commit 833b9fd20d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1 +1 @@
1744
1745
+1 -1
View File
@@ -154,7 +154,7 @@ class Conductor
// update conductor
var timeUntilUpdate = -(lastSongPosTime - (lastSongPosTime = Lib.getTimer()));
var elapsedAL = (lastSongPos - lastPos);
speed = FlxMath.bound(FlxMath.lerp(speed, timeUntilUpdate / elapsedAL, elapsedAL / 1000), 0.85, 1.15);
speed = FlxMath.bound(FlxMath.lerp(speed, timeUntilUpdate / elapsedAL, timeUntilUpdate / 1000), 0.85, 1.15);
songPosition = lastSongPos;
} else {
songPosition += elapsed * 1000 * speed;