From 1f479a5b1613e88d05053db822fe18d4286e7cc5 Mon Sep 17 00:00:00 2001 From: Ralty <78720179+Raltyro@users.noreply.github.com> Date: Thu, 7 Aug 2025 22:29:44 +0700 Subject: [PATCH] fix beatHit twice during start --- source/funkin/game/PlayState.hx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/source/funkin/game/PlayState.hx b/source/funkin/game/PlayState.hx index 1f972220..62246349 100644 --- a/source/funkin/game/PlayState.hx +++ b/source/funkin/game/PlayState.hx @@ -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) {