From d9fcaf0e6382b121f7773d23f4864364a1e6a577 Mon Sep 17 00:00:00 2001 From: Hundrec Date: Fri, 2 May 2025 05:02:29 -0600 Subject: [PATCH] Restore Lasercar's changes Dropped them somewhere whoopsie Co-Authored-By: Lasercar <64717068+Lasercar@users.noreply.github.com> --- source/funkin/play/PlayState.hx | 4 ++-- source/funkin/ui/freeplay/FreeplayScore.hx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/funkin/play/PlayState.hx b/source/funkin/play/PlayState.hx index 3aab67998..5e3630253 100644 --- a/source/funkin/play/PlayState.hx +++ b/source/funkin/play/PlayState.hx @@ -1138,7 +1138,7 @@ class PlayState extends MusicBeatSubState if (!isMinimalMode) { if (iconP1 != null) iconP1.updatePosition(); - if (iconP1 != null) iconP2.updatePosition(); + if (iconP2 != null) iconP2.updatePosition(); } // Transition to the game over substate. @@ -2729,7 +2729,7 @@ class PlayState extends MusicBeatSubState #end // 9: Toggle the old icon. - if (FlxG.keys.justPressed.NINE) iconP1.toggleOldIcon(); + if (FlxG.keys.justPressed.NINE && iconP1 != null) iconP1.toggleOldIcon(); #if FEATURE_DEBUG_FUNCTIONS // PAGEUP: Skip forward two sections. diff --git a/source/funkin/ui/freeplay/FreeplayScore.hx b/source/funkin/ui/freeplay/FreeplayScore.hx index 8c0911a70..0725bf1fa 100644 --- a/source/funkin/ui/freeplay/FreeplayScore.hx +++ b/source/funkin/ui/freeplay/FreeplayScore.hx @@ -35,7 +35,7 @@ class FreeplayScore extends FlxTypedSpriteGroup loopNum--; } - while (loopNum > 0) + while (loopNum >= 0) { group.members[loopNum].digit = 0; loopNum--;