mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2025-06-28 07:01:49 +00:00
version checking
This commit is contained in:
@ -19,6 +19,18 @@ getRemoteWaypoints(mapname)
|
||||
}
|
||||
}
|
||||
|
||||
getRemoteVersion()
|
||||
{
|
||||
request = httpGet( "https://raw.githubusercontent.com/ineedbots/iw4x_waypoints/master/version.txt" );
|
||||
request waittill( "done", success, data );
|
||||
request destroy();
|
||||
|
||||
if (!success)
|
||||
return undefined;
|
||||
|
||||
return strtok(data, "\n")[0];
|
||||
}
|
||||
|
||||
linesToWaypoints(res)
|
||||
{
|
||||
waypoints = [];
|
||||
|
Reference in New Issue
Block a user