From 8e0a286c01ffc16e3a56a8745038496430fa7013 Mon Sep 17 00:00:00 2001 From: M&M Date: Fri, 5 Feb 2021 15:23:28 -0800 Subject: [PATCH] Pause menu goes back to the mode you came from --- source/PauseSubState.hx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/PauseSubState.hx b/source/PauseSubState.hx index ac747dbca..b42b9a0fb 100644 --- a/source/PauseSubState.hx +++ b/source/PauseSubState.hx @@ -80,7 +80,10 @@ class PauseSubState extends MusicBeatSubstate case "Restart Song": FlxG.resetState(); case "Exit to menu": - FlxG.switchState(new MainMenuState()); + if (PlayState.isStoryMode) + FlxG.switchState(new StoryMenuState()); + else + FlxG.switchState(new FreeplayState()); } }