diff --git a/userraw/maps/mp/bots/_bot.gsc b/userraw/maps/mp/bots/_bot.gsc index 0310eb4..ee46b30 100644 --- a/userraw/maps/mp/bots/_bot.gsc +++ b/userraw/maps/mp/bots/_bot.gsc @@ -147,27 +147,6 @@ init() level thread doVersionCheck(); } -doVersionCheck() -{ - remoteVersion = maps\mp\bots\_bot_http::getRemoteVersion(); - - if (!isDefined(remoteVersion)) - { - println("Error getting remote version of Bot Warfare."); - return false; - } - - if (level.bw_VERSION != remoteVersion) - { - println("There is a new version of Bot Warfare!"); - println("You are on version " + level.bw_VERSION + " but " + remoteVersion + " is available!"); - return false; - } - - println("You are on the latest version of Bot Warfare!"); - return true; -} - /* Starts the threads for bots. */ diff --git a/userraw/maps/mp/bots/_bot_http.gsc b/userraw/maps/mp/bots/_bot_http.gsc index 509e130..3ab99dc 100644 --- a/userraw/maps/mp/bots/_bot_http.gsc +++ b/userraw/maps/mp/bots/_bot_http.gsc @@ -1,5 +1,26 @@ #include maps\mp\bots\_bot_utility; +doVersionCheck() +{ + remoteVersion = getRemoteVersion(); + + if (!isDefined(remoteVersion)) + { + println("Error getting remote version of Bot Warfare."); + return false; + } + + if (level.bw_VERSION != remoteVersion) + { + println("There is a new version of Bot Warfare!"); + println("You are on version " + level.bw_VERSION + " but " + remoteVersion + " is available!"); + return false; + } + + println("You are on the latest version of Bot Warfare!"); + return true; +} + getRemoteWaypoints(mapname) { url = "https://raw.githubusercontent.com/ineedbots/iw4x_waypoints/master/" + mapname + "_wp.csv";