Update Charter.hx

This commit is contained in:
Frakits
2023-08-22 09:55:35 +03:00
committed by GitHub
parent bf475d9bd3
commit 91034f180d
+2 -2
View File
@@ -937,9 +937,9 @@ class Charter extends UIState {
}
var songLength = FlxG.sound.music.getDefault(vocals).length;
Conductor.songPosition = FlxMath.bound(Conductor.songPosition, 0, songLength);
Conductor.songPosition = FlxMath.bound(Conductor.songPosition + Conductor.songOffset, 0, songLength);
if (Conductor.songPosition >= songLength) {
if (Conductor.songPosition >= songLength - Conductor.songOffset) {
FlxG.sound.music.pause();
vocals.pause();
}