fix beatHit twice during start

This commit is contained in:
Ralty
2025-08-07 22:29:44 +07:00
parent 967bd4cf01
commit 1f479a5b16
+3 -4
View File
@@ -1375,10 +1375,9 @@ class PlayState extends MusicBeatState
updateIconPositions();
if (startingSong) {
if (startedCountdown) {
Conductor.songPosition += Conductor.songOffset + elapsed * 1000;
if (Conductor.songPosition >= 0)
startSong();
if (startedCountdown && (Conductor.songPosition += Conductor.songOffset + elapsed * 1000) >= 0) {
Conductor.songPosition = Conductor.songOffset;
startSong();
}
}
else if (FlxG.sound.music != null && (__vocalSyncTimer -= elapsed) < 0) {