void XonoticToSDialog_loadXonoticToS(entity me)
{
- string downloadurl = "http://maria.omaera.org/tos.txt";
- url_single_fopen(downloadurl, FILE_READ, XonoticToS_OnGet, me);
+ url_single_fopen(termsofservice_url, FILE_READ, XonoticToS_OnGet, me);
}
void XonoticToS_OnGet(entity fh, entity me, int status)
#pragma once
int autocvar__termsofservice_accepted;
+const string termsofservice_url = "http://update.xonotic.org/tos.txt";
#include "rootdialog.qh"
CLASS(XonoticToSDialog, XonoticRootDialog)
// for privacy, munge the start count a little
startcnt = floor((floor(startcnt / 10) + random()) * 10);
- //uri = sprintf("http://update.xonotic.org/checkupdate.txt?version=%s&cnt=%d", uri_escape(cvar_string("g_xonoticversion")), startcnt);
- uri = "http://maria.omaera.org/checkupdate.txt";
+ uri = sprintf("http://update.xonotic.org/checkupdate.txt?version=%s&cnt=%d", uri_escape(cvar_string("g_xonoticversion")), startcnt);
uri_get(uri, URI_GET_UPDATENOTIFICATION);
}