From: cloudwalk Date: Fri, 16 Oct 2020 22:45:59 +0000 (+0000) Subject: cvar: Remove redundant check if cvar changed before printing for CF_NOTIFY X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3cbb49289a2ae0276456b90ad80f9bad5ee0be0f;p=xonotic%2Fdarkplaces.git cvar: Remove redundant check if cvar changed before printing for CF_NOTIFY git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13012 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/cvar.c b/cvar.c index 0da59c9f..22e8f512 100644 --- a/cvar.c +++ b/cvar.c @@ -392,7 +392,7 @@ static void Cvar_SetQuick_Internal (cvar_t *var, const char *value) memcpy ((char *)var->string, value, valuelen + 1); var->value = atof (var->string); var->integer = (int) var->value; - if ((var->flags & CF_NOTIFY) && changed && sv.active && !sv_disablenotify.integer) + if ((var->flags & CF_NOTIFY) && sv.active && !sv_disablenotify.integer) SV_BroadcastPrintf("\003^3Server cvar \"%s\" changed to \"%s\"\n", var->name, var->string); #if 0 // TODO: add infostring support to the server?