Only show a Sending cvar message when connected to a server
authorMario <mario.mario@y7mail.com>
Sat, 30 May 2020 19:53:53 +0000 (05:53 +1000)
committerMario <mario.mario@y7mail.com>
Sat, 30 May 2020 19:53:53 +0000 (05:53 +1000)
qcsrc/menu/xonotic/util.qc

index 5e9fdb0..5a3f6c6 100644 (file)
@@ -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));
                }
        }