From f0d25558c9e3d5631c129331eb98b7cf3abaa47e Mon Sep 17 00:00:00 2001 From: lunarcleint <88809950+lunarcleint@users.noreply.github.com> Date: Thu, 19 Jan 2023 19:48:37 -0700 Subject: [PATCH] OVERSIGHT SPOTTED!! --- buildnumber.txt | 2 +- source/funkin/game/PlayState.hx | 12 ++++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/buildnumber.txt b/buildnumber.txt index e9ad4b45..3c719f27 100644 --- a/buildnumber.txt +++ b/buildnumber.txt @@ -1 +1 @@ -2094 \ No newline at end of file +2096 \ No newline at end of file diff --git a/source/funkin/game/PlayState.hx b/source/funkin/game/PlayState.hx index fce69b62..9bcea61b 100644 --- a/source/funkin/game/PlayState.hx +++ b/source/funkin/game/PlayState.hx @@ -445,6 +445,8 @@ class PlayState extends MusicBeatState */ public var hitWindow:Float = Options.hitWindow; // is calculated in create(), is safeFrames in milliseconds + @:noCompletion @:dox(hide) private var _startCountdownCalled:Bool = false; + @:dox(hide) var __vocalOffsetViolation:Float = 0; @@ -746,14 +748,16 @@ class PlayState extends MusicBeatState public function startCountdown():Void { + if (!_startCountdownCalled) { + _startCountdownCalled = true; + inCutscene = false; - inCutscene = false; + var e = scripts.event("onStartCountdown", new CancellableEvent()); + if (e.cancelled) return; + } generateStrums(); - var e = scripts.event("onStartCountdown", new CancellableEvent()); - if (e.cancelled) return; - startedCountdown = true; Conductor.songPosition = 0; Conductor.songPosition -= Conductor.crochet * introLength;