Skip to content

Commit

Permalink
Update PlayState.hx
Browse files Browse the repository at this point in the history
  • Loading branch information
Catbrother-Everything committed Aug 14, 2021
1 parent 69af949 commit f06211d
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions source/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -2851,7 +2851,14 @@ class PlayState extends MusicBeatState
vocals.stop();
FlxG.sound.music.stop();

openSubState(new GameOverSubstate(boyfriend.getScreenPosition().x, boyfriend.getScreenPosition().y));
if (FlxG.save.data.InstantRespawn)
{
FlxG.switchState(new PlayState());
}
else
{
openSubState(new GameOverSubstate(boyfriend.getScreenPosition().x, boyfriend.getScreenPosition().y));
}

#if windows
// Game Over doesn't get his own variable because it's only used here
Expand Down Expand Up @@ -2886,8 +2893,15 @@ class PlayState extends MusicBeatState

vocals.stop();
FlxG.sound.music.stop();

openSubState(new GameOverSubstate(boyfriend.getScreenPosition().x, boyfriend.getScreenPosition().y));

if (FlxG.save.data.InstantRespawn)
{
FlxG.switchState(new PlayState());
}
else
{
openSubState(new GameOverSubstate(boyfriend.getScreenPosition().x, boyfriend.getScreenPosition().y));
}

#if windows
// Game Over doesn't get his own variable because it's only used here
Expand Down

0 comments on commit f06211d

Please sign in to comment.