From 4961d09f5d00c8e40cc16e3bfb0db0de25d96abd Mon Sep 17 00:00:00 2001 From: divverent Date: Tue, 15 May 2007 23:16:06 +0000 Subject: [PATCH] only print Set: and SetA: for developer >= 100 (as only then, a Cvar_Get function call line always follows) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7287 d7cf8633-e32d-0410-b094-e92efae38249 --- cvar.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cvar.c b/cvar.c index beee7212..e51b8d09 100644 --- a/cvar.c +++ b/cvar.c @@ -672,7 +672,8 @@ void Cvar_Set_f (void) return; } - Con_DPrint("Set: "); + if (developer.integer >= 100) + Con_DPrint("Set: "); // all looks ok, create/modify the cvar Cvar_Get(Cmd_Argv(1), Cmd_Argv(2), 0); @@ -697,7 +698,8 @@ void Cvar_SetA_f (void) return; } - Con_DPrint("SetA: "); + if (developer.integer >= 100) + Con_DPrint("SetA: "); // all looks ok, create/modify the cvar Cvar_Get(Cmd_Argv(1), Cmd_Argv(2), CVAR_SAVE); -- 2.39.2