]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
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 5e9fdb03d96d9a0ab079810d52fe799fdbf41625..5a3f6c6c5b5c57441931d72ed033d15ac0117a2f 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));
                }
        }