outdated check

This commit is contained in:
Cameron Taylor
2020-12-25 00:17:21 -05:00
parent 087d735aa3
commit e1df3e98f6
3 changed files with 22 additions and 12 deletions

View File

@ -87,12 +87,14 @@ class MainMenuState extends MusicBeatState
versionShit.setFormat("VCR OSD Mono", 16, FlxColor.WHITE, LEFT, FlxTextBorderStyle.OUTLINE, FlxColor.BLACK);
add(versionShit);
if (versionShit.text != NGio.GAME_VER)
if (versionShit.text != NGio.GAME_VER && !OutdatedSubState.leftState)
{
openSubState(new OutdatedSubState());
trace('OLD VERSION!');
FlxG.switchState(new OutdatedSubState());
}
NG.core.calls.event.logEvent('swag').send();
// NG.core.calls.event.logEvent('swag').send();
changeItem();