X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=cvar.c;h=db209739fd3c4995e4051fdc8ea7eedc7f797cf2;hb=4edd84910ac8f236228591507525868ee22aa7e1;hp=fb7cb18d097d77466c42c1636b160c2412eeff77;hpb=5b78b3567a82f44464f9fda37f4e681845d8258d;p=xonotic%2Fdarkplaces.git diff --git a/cvar.c b/cvar.c index fb7cb18d..db209739 100644 --- 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; }