pause now goes to whatever menu you were last on

This commit is contained in:
M&M 2021-07-05 20:53:10 -07:00
parent 1ab0d2cb00
commit a2c4b3e0b6

View File

@ -240,7 +240,10 @@ class PauseSubState extends MusicBeatSubstate
if (FlxG.save.data.fpsCap > 290)
(cast (Lib.current.getChildAt(0), Main)).setFPSCap(290);
FlxG.switchState(new MainMenuState());
if (PlayState.isStoryMode)
FlxG.switchState(new StoryMenuState());
else
FlxG.switchState(new FreeplayState());
}
}