]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cvar.c
now runs scripts at startup differently - runs scripts twice, once only executing...
[xonotic/darkplaces.git] / cvar.c
diff --git a/cvar.c b/cvar.c
index fb7cb18d097d77466c42c1636b160c2412eeff77..db209739fd3c4995e4051fdc8ea7eedc7f797cf2 100644 (file)
--- a/cvar.c
+++ b/cvar.c
@@ -315,7 +315,9 @@ qboolean    Cvar_Command (void)
 // perform a variable print or set
        if (Cmd_Argc() == 1)
        {
-               Con_Printf ("\"%s\" is \"%s\"\n", v->name, v->string);
+               // only print if host_initialized (otherwise it could print twice if this is in a script)
+               if (host_initialized)
+                       Con_Printf ("\"%s\" is \"%s\"\n", v->name, v->string);
                return true;
        }