it makes sense to, ya know- USE VARS FOR THE REASON THEY WERE MADE
This commit is contained in:
Rodney, An Imaginative Person
2024-05-31 16:46:43 +02:00
committed by GitHub
parent 814bd712fe
commit d36bd692d8
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -108,7 +108,7 @@ class GameOverSubstate extends MusicBeatSubstate
if (controls.BACK)
{
if (PlayState.chartingMode && Charter.undos.unsaved)
PlayState.instance.saveWarn(false);
game.saveWarn(false);
else {
PlayState.resetSongInfos();
if (Charter.instance != null) Charter.instance.__clearStatics();
+3 -3
View File
@@ -106,7 +106,7 @@ class PauseSubState extends MusicBeatSubstate
pauseScript.call("postCreate");
PlayState.instance.updateDiscordPresence();
game.updateDiscordPresence();
}
override function update(elapsed:Float)
@@ -146,7 +146,7 @@ class PauseSubState extends MusicBeatSubstate
close();
case "Restart Song":
parentDisabler.reset();
PlayState.instance.registerSmoothTransition();
game.registerSmoothTransition();
FlxG.resetState();
case "Change Controls":
persistentDraw = false;
@@ -157,7 +157,7 @@ class PauseSubState extends MusicBeatSubstate
FlxG.switchState(new funkin.editors.charter.Charter(PlayState.SONG.meta.name, PlayState.difficulty, false));
case "Exit to menu":
if (PlayState.chartingMode && Charter.undos.unsaved)
PlayState.instance.saveWarn(false);
game.saveWarn(false);
else {
PlayState.resetSongInfos();
if (Charter.instance != null) Charter.instance.__clearStatics();