]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cvar.c
changed changed commandline history behavior to be more sane
[xonotic/darkplaces.git] / cvar.c
diff --git a/cvar.c b/cvar.c
index a8f6a27b326426c590b0530643cc2db73449c3d1..2337ae87e7102e1ff826f25b89200e481b8ba702 100644 (file)
--- a/cvar.c
+++ b/cvar.c
@@ -353,7 +353,7 @@ cvar_t *Cvar_Get (const char *name, const char *value, int flags)
 
        if (developer.integer)
                Con_Printf("Cvar_Get(\"%s\", \"%s\", %i);\n", name, value, flags);
-       
+
 // first check to see if it has already been defined
        cvar = Cvar_FindVar (name);
        if (cvar)
@@ -407,14 +407,11 @@ qboolean  Cvar_Command (void)
 // perform a variable print or set
        if (Cmd_Argc() == 1)
        {
-               // 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);
+               Con_Printf("\"%s\" is \"%s\"\n", v->name, v->string);
                return true;
        }
 
-       if (developer.integer)
-               Con_Print("Cvar_Command: ");
+       Con_DPrint("Cvar_Command: ");
 
        if (v->flags & CVAR_READONLY)
        {
@@ -504,8 +501,7 @@ void Cvar_Set_f (void)
                return;
        }
 
-       if (developer.integer)
-               Con_Print("Set: ");
+       Con_DPrint("Set: ");
 
        // all looks ok, create/modify the cvar
        Cvar_Get(Cmd_Argv(1), Cmd_Argv(2), 0);
@@ -530,8 +526,7 @@ void Cvar_SetA_f (void)
                return;
        }
 
-       if (developer.integer)
-               Con_Print("SetA: ");
+       Con_DPrint("SetA: ");
 
        // all looks ok, create/modify the cvar
        Cvar_Get(Cmd_Argv(1), Cmd_Argv(2), CVAR_SAVE);