Fix Resyncing

This commit is contained in:
Ralty
2025-07-10 16:16:55 +07:00
parent 6cb90a66c9
commit aa5cf639e8
+6 -18
View File
@@ -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");
}