Skip to content

Commit 5a89076

Browse files
committed
my bad
1 parent be917a5 commit 5a89076

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

source/states/FirstCheckState.hx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,6 @@ class FirstCheckState extends MusicBeatState
3636
override public function create()
3737
{
3838
//backend.window.Priority.setPriority(0);
39-
if (gameInitialized && !relaunch)
40-
{
41-
lime.app.Application.current.window.alert("You cannot access this state. It is for initialization only.", "Debug");
42-
throw new haxe.Exception("Invalid state access!");
43-
}
44-
4539
if (!relaunch) COD.initCOD();
4640

4741
super.create();
@@ -136,7 +130,7 @@ class FirstCheckState extends MusicBeatState
136130
}
137131
else
138132
{
139-
FlxG.switchState(new states.SplashScreen());
133+
FlxG.switchState(new TitleState());
140134
}
141135
}
142136
}

source/states/PlayState.hx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4189,7 +4189,7 @@ class PlayState extends MusicBeatState
41894189
&& !isDead
41904190
&& gameOverTimer == null;
41914191
}
4192-
if (skipHealthCheck || instakillOnMiss || killPlayer)
4192+
if (skipHealthCheck || instakillOnMiss && killPlayer || killPlayer)
41934193
{
41944194
var ret:Dynamic = callOnScripts('onGameOver', null, true);
41954195
if(ret != LuaUtils.Function_Stop)

0 commit comments

Comments
 (0)