From 91034f180d05b91630c781958f9035832a5dfcfa Mon Sep 17 00:00:00 2001 From: Frakits <90983918+Frakits@users.noreply.github.com> Date: Tue, 22 Aug 2023 09:55:35 +0300 Subject: [PATCH] Update Charter.hx --- source/funkin/editors/charter/Charter.hx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/funkin/editors/charter/Charter.hx b/source/funkin/editors/charter/Charter.hx index 13f909f6..49461a79 100644 --- a/source/funkin/editors/charter/Charter.hx +++ b/source/funkin/editors/charter/Charter.hx @@ -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(); }