From: z411 Date: Wed, 24 Nov 2021 06:19:55 +0000 (-0300) Subject: ToS: Don't show if there's no version for now X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=5c6d30854a2220a568f2eb751ca4704bc4f126cb;p=xonotic%2Fxonotic-data.pk3dir.git ToS: Don't show if there's no version for now --- diff --git a/qcsrc/menu/xonotic/dialog_termsofservice.qc b/qcsrc/menu/xonotic/dialog_termsofservice.qc index 568fdedfc..c0375b224 100644 --- a/qcsrc/menu/xonotic/dialog_termsofservice.qc +++ b/qcsrc/menu/xonotic/dialog_termsofservice.qc @@ -10,13 +10,11 @@ void Close_Clicked(entity btn, entity me) { - LOG_INFO("Setting _termsofservice_accepted to ", _Nex_ExtResponseSystem_NewToS); + LOG_INFO("Setting _termsofservice_accepted cvar to ", _Nex_ExtResponseSystem_NewToS); cvar_set("_termsofservice_accepted", _Nex_ExtResponseSystem_NewToS); localcmd("saveconfig"); if (main.firstRunDialog.shouldShow()) - { main.firstDraw = true; - } Dialog_Close(btn, me); } @@ -74,7 +72,7 @@ void XonoticToS_OnGet(entity fh, entity me, int status) bool XonoticToSDialog_shouldShow() { LOG_INFO("newtos value: ", _Nex_ExtResponseSystem_NewToS); - return (_Nex_ExtResponseSystem_NewToS != autocvar__termsofservice_accepted); + return (_Nex_ExtResponseSystem_NewToS != "" && _Nex_ExtResponseSystem_NewToS != autocvar__termsofservice_accepted); } void XonoticToSDialog_fill(entity me)