diff --git a/source/OutdatedSubState.hx b/source/OutdatedSubState.hx index 8cf806a2c7..07a506467f 100644 --- a/source/OutdatedSubState.hx +++ b/source/OutdatedSubState.hx @@ -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(); diff --git a/source/TitleState.hx b/source/TitleState.hx index 68bd682da5..652d00aa92 100644 --- a/source/TitleState.hx +++ b/source/TitleState.hx @@ -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()); }