From 451bf58b04a10b17fe13da6411a9bbbadfeecfcd Mon Sep 17 00:00:00 2001 From: Kade M Date: Sat, 19 Jun 2021 15:51:41 -0700 Subject: [PATCH] fixedw options --- source/PlayState.hx | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/source/PlayState.hx b/source/PlayState.hx index bb16a36..39e8b2b 100644 --- a/source/PlayState.hx +++ b/source/PlayState.hx @@ -2627,7 +2627,13 @@ class PlayState extends MusicBeatState FlxG.sound.music.stop(); vocals.stop(); - openSubState(new ResultsScreen()); + if (FlxG.save.data.scoreScreen) + openSubState(new ResultsScreen()); + else + { + FlxG.sound.playMusic(Paths.music('freakyMenu')); + FlxG.switchState(new MainMenuState()); + } #if windows if (luaModchart != null) @@ -2696,7 +2702,10 @@ class PlayState extends MusicBeatState FlxG.sound.music.stop(); vocals.stop(); - openSubState(new ResultsScreen()); + if (FlxG.save.data.scoreScreen) + openSubState(new ResultsScreen()); + else + FlxG.switchState(new PlayState()); } } }