From aa5cf639e8a646fad3f300acb17e289ce8473ed3 Mon Sep 17 00:00:00 2001 From: Ralty <78720179+Raltyro@users.noreply.github.com> Date: Thu, 10 Jul 2025 16:16:55 +0700 Subject: [PATCH] Fix Resyncing --- source/funkin/game/PlayState.hx | 24 ++++++------------------ 1 file changed, 6 insertions(+), 18 deletions(-) diff --git a/source/funkin/game/PlayState.hx b/source/funkin/game/PlayState.hx index d81c9444..346e4626 100644 --- a/source/funkin/game/PlayState.hx +++ b/source/funkin/game/PlayState.hx @@ -1000,14 +1000,9 @@ class PlayState extends MusicBeatState inst.onComplete = endSong; var time = (chartingMode && Charter.startHere) ? Charter.startTime : 0; - inst.time = vocals.time = time; - - for (strumLine in strumLines.members) { - strumLine.vocals.time = time; - strumLine.vocals.play(); - } - vocals.play(); - inst.play(); + for (strumLine in strumLines.members) strumLine.vocals.play(true, time); + vocals.play(true, time); + inst.play(true, time); updateDiscordPresence(); @@ -1176,17 +1171,10 @@ class PlayState extends MusicBeatState @:dox(hide) function resyncVocals():Void { - vocals.pause(); - for (strumLine in strumLines.members) strumLine.vocals.pause(); - var time = Conductor.songPosition + Conductor.songOffset; - inst.time = vocals.time = time; - for (strumLine in strumLines.members) { - strumLine.vocals.time = time; - strumLine.vocals.play(); - } - vocals.play(); - inst.play(); + for (strumLine in strumLines.members) strumLine.vocals.play(true, time); + vocals.play(true, time); + inst.play(true, time); gameAndCharsCall("onVocalsResync"); }