From 6aec2e024b856d99d4839d99491a6e7b2f286716 Mon Sep 17 00:00:00 2001 From: NeeEoo Date: Wed, 22 Mar 2023 02:11:15 +0100 Subject: [PATCH] Small fix --- buildnumber.txt | 2 +- source/funkin/game/PlayState.hx | 4 +--- source/funkin/menus/PauseSubState.hx | 8 ++++++-- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/buildnumber.txt b/buildnumber.txt index 92c15ec1..ad12d720 100644 --- a/buildnumber.txt +++ b/buildnumber.txt @@ -1 +1 @@ -2654 \ No newline at end of file +2655 \ No newline at end of file diff --git a/source/funkin/game/PlayState.hx b/source/funkin/game/PlayState.hx index 5a702456..a0bf7928 100644 --- a/source/funkin/game/PlayState.hx +++ b/source/funkin/game/PlayState.hx @@ -1012,9 +1012,7 @@ class PlayState extends MusicBeatState FlxG.switchState(new GitarooPause()); } else { - var point:FlxPoint = boyfriend != null ? boyfriend.getScreenPosition() : FlxPoint.get(); - openSubState(new PauseSubState(point.x, point.y)); - point.put(); + openSubState(new PauseSubState()); } updateDiscordPresence(); diff --git a/source/funkin/menus/PauseSubState.hx b/source/funkin/menus/PauseSubState.hx index 1f5becd4..8b106a25 100644 --- a/source/funkin/menus/PauseSubState.hx +++ b/source/funkin/menus/PauseSubState.hx @@ -31,9 +31,13 @@ class PauseSubState extends MusicBeatSubstate private var __cancelDefault:Bool = false; - public function new(x:Float, y:Float) - { + public function new(x:Float = 0, y:Float = 0) { super(); + } + + override function create() + { + super.create(); pauseScript = Script.create(Paths.script(script)); pauseScript.setParent(this);