Skip to content

Commit

Permalink
Update PauseSubState.hx
Browse files Browse the repository at this point in the history
  • Loading branch information
Joalor64GH authored Jun 7, 2024
1 parent 6815599 commit 490f171
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion source/meta/substate/PauseSubState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,8 @@ class PauseSubState extends MusicBeatSubstate
switch (daSelected)
{
case "Exit to Freeplay":
Application.current.window.title = Application.current.meta.get('name');

PlayState.deathCounter = 0;
PlayState.seenCutscene = false;

Expand All @@ -266,6 +268,8 @@ class PauseSubState extends MusicBeatSubstate
PlayState.changedDifficulty = false;
PlayState.chartingMode = false;
case "Exit to Menu":
Application.current.window.title = Application.current.meta.get('name');

PlayState.deathCounter = 0;
PlayState.seenCutscene = false;

Expand All @@ -286,6 +290,7 @@ class PauseSubState extends MusicBeatSubstate
PlayState.changedDifficulty = false;
PlayState.chartingMode = false;
case "Exit Game":
Application.current.window.title = Application.current.meta.get('name');
MusicBeatState.switchState(new GameExitState());
}
return;
Expand Down Expand Up @@ -492,4 +497,4 @@ class PauseSubState extends MusicBeatSubstate
{
skipTimeText.text = FlxStringUtil.formatTime(Math.max(0, Math.floor(curTime / 1000)), false) + ' / ' + FlxStringUtil.formatTime(Math.max(0, Math.floor(FlxG.sound.music.length / 1000)), false);
}
}
}

0 comments on commit 490f171

Please sign in to comment.