Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Commit

Permalink
dude im super fuckin dumb
Browse files Browse the repository at this point in the history
  • Loading branch information
Kade-github committed Mar 9, 2021
1 parent 99f6496 commit f49909f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
8 changes: 3 additions & 5 deletions source/OutdatedSubState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
4 changes: 2 additions & 2 deletions source/TitleState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand Down

0 comments on commit f49909f

Please sign in to comment.