dude im super fuckin dumb
This commit is contained in:
parent
99f6496541
commit
f49909f03f
@ -18,13 +18,11 @@ class OutdatedSubState extends MusicBeatState
|
||||
super.create();
|
||||
var bg:FlxSprite = new FlxSprite().makeGraphic(FlxG.width, FlxG.height, FlxColor.BLACK);
|
||||
add(bg);
|
||||
var ver = "v" + Application.current.meta.get('version');
|
||||
var txt:FlxText = new FlxText(0, 0, FlxG.width,
|
||||
"Kade Engine is Outdated!\n"
|
||||
+ ver
|
||||
+ " is your current version while the most recent version is "
|
||||
+ needVer
|
||||
+ "! Press Space to go to the github or ESCAPE to ignore this!!",
|
||||
+ MainMenuState.kadeEngineVer
|
||||
+ " is your current version\nwhile the most recent version is " + needVer
|
||||
+ "!\nPress Space to go to the github or ESCAPE to ignore this!!",
|
||||
32);
|
||||
txt.setFormat("VCR OSD Mono", 32, FlxColor.WHITE, CENTER);
|
||||
txt.screenCenter();
|
||||
|
@ -283,9 +283,9 @@ class TitleState extends MusicBeatState
|
||||
|
||||
http.onData = function (data:String) {
|
||||
|
||||
if (MainMenuState.kadeEngineVer != data && !OutdatedSubState.leftState)
|
||||
if (!MainMenuState.kadeEngineVer.contains(data.trim()) && !OutdatedSubState.leftState)
|
||||
{
|
||||
trace('outdated lmao! ' + data + ' != ' + MainMenuState.kadeEngineVer);
|
||||
trace('outdated lmao! ' + data.trim() + ' != ' + MainMenuState.kadeEngineVer);
|
||||
OutdatedSubState.needVer = data;
|
||||
FlxG.switchState(new OutdatedSubState());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user