From: Mario Date: Sat, 30 May 2020 19:53:53 +0000 (+1000) Subject: Only show a Sending cvar message when connected to a server X-Git-Tag: xonotic-v0.8.5~985 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=94243c80de4823ab3d5acee9e78faedf046a8461;p=xonotic%2Fxonotic-data.pk3dir.git Only show a Sending cvar message when connected to a server --- diff --git a/qcsrc/menu/xonotic/util.qc b/qcsrc/menu/xonotic/util.qc index 5e9fdb03d..5a3f6c6c5 100644 --- a/qcsrc/menu/xonotic/util.qc +++ b/qcsrc/menu/xonotic/util.qc @@ -830,9 +830,9 @@ void CheckSendCvars(entity me, string cvarnamestring) { if(me.sendCvars) { - LOG_INFOF("Sending cvar: %s -> %s", cvarnamestring, cvar_string(cvarnamestring)); if(gamestatus & (GAME_CONNECTED | GAME_ISSERVER)) { + LOG_INFOF("Sending cvar: %s -> %s", cvarnamestring, cvar_string(cvarnamestring)); cmd(sprintf("\nsendcvar %s\n", cvarnamestring)); } }