void Close_Clicked(entity btn, entity me)
{
- LOG_INFO("Accepted ToS version ", _Nex_ExtResponseSystem_NewToS);
- cvar_set("_termsofservice_accepted", _Nex_ExtResponseSystem_NewToS);
+ LOG_INFOF("Accepted ToS version %d", _Nex_ExtResponseSystem_NewToS);
+ cvar_set("_termsofservice_accepted", ftos(_Nex_ExtResponseSystem_NewToS));
localcmd("saveconfig");
if (main.firstRunDialog.shouldShow())
- main.firstDraw = true;
+ main.firstDraw = true;
Dialog_Close(btn, me);
}
bool XonoticToSDialog_shouldShow()
{
- LOG_INFO("newtos value: ", _Nex_ExtResponseSystem_NewToS);
- return (_Nex_ExtResponseSystem_NewToS != "" && _Nex_ExtResponseSystem_NewToS != autocvar__termsofservice_accepted);
+ return (_Nex_ExtResponseSystem_NewToS && _Nex_ExtResponseSystem_NewToS > autocvar__termsofservice_accepted);
}
void XonoticToSDialog_fill(entity me)
if(un_tosversion != "")
{
- _Nex_ExtResponseSystem_NewToS = strzone(un_tosversion);
- LOG_INFO("Latest ToS version is ", un_tosversion);
+ _Nex_ExtResponseSystem_NewToS = stof(un_tosversion);
+ LOG_INFOF("Latest ToS version is %d", _Nex_ExtResponseSystem_NewToS);
}
if(un_bannedservers != "")
float _Nex_ExtResponseSystem_PromotedServersNeedsRefresh;
string _Nex_ExtResponseSystem_RecommendedServers;
float _Nex_ExtResponseSystem_RecommendedServersNeedsRefresh;
-string _Nex_ExtResponseSystem_NewToS;
+float _Nex_ExtResponseSystem_NewToS;
void CheckSendCvars(entity me, string cvarnamestring);