From 7d925ae0eccdbf0241c65385841ddb01aa725274 Mon Sep 17 00:00:00 2001 From: Cameron Taylor Date: Thu, 8 Oct 2020 17:54:47 -0700 Subject: [PATCH] build script fixin --- art/build-Itch-WINDOWS.bat | 2 +- source/PlayState.hx | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/art/build-Itch-WINDOWS.bat b/art/build-Itch-WINDOWS.bat index 605e79b2a..1fcd6829b 100644 --- a/art/build-Itch-WINDOWS.bat +++ b/art/build-Itch-WINDOWS.bat @@ -6,6 +6,6 @@ echo BUILDING GAME lime build windows -final echo UPLOADING TO ITCH butler push ./export/release/windows/bin ninja-muffin24/friday-night-funkin:windows -butler status ninja-muffin24/ld47:windows +butler status ninja-muffin24/friday-night-funkin:windows echo ITCH SHIT UPDATED LMAOOOOO pause \ No newline at end of file diff --git a/source/PlayState.hx b/source/PlayState.hx index de35d36a4..684b58c09 100644 --- a/source/PlayState.hx +++ b/source/PlayState.hx @@ -415,7 +415,10 @@ class PlayState extends FlxTransitionableState } else Conductor.songPosition = FlxG.sound.music.time; - var playerTurn:Int = totalBeats % (sectionLengths[curSection] * 8); + + var playerTurn:Int = 0; + if (sectionLengths.length > curSection) + playerTurn = totalBeats % (sectionLengths[curSection] * 8); if (playerTurn == (sectionLengths[curSection] * 8) - 1 && !sectionScored) {