From: divverent Date: Tue, 15 May 2007 23:16:06 +0000 (+0000) Subject: only print Set: and SetA: for developer >= 100 (as only then, a Cvar_Get function... X-Git-Tag: xonotic-v0.1.0preview~3166 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=4961d09f5d00c8e40cc16e3bfb0db0de25d96abd;p=xonotic%2Fdarkplaces.git 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 --- 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);