]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
cvar: Remove redundant check if cvar changed before printing for CF_NOTIFY
authorcloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 16 Oct 2020 22:45:59 +0000 (22:45 +0000)
committercloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 16 Oct 2020 22:45:59 +0000 (22:45 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13012 d7cf8633-e32d-0410-b094-e92efae38249

cvar.c

diff --git a/cvar.c b/cvar.c
index 0da59c9fdb69e7d225ed8e2bd1ed9969bc5364b9..22e8f51258f87a08b356f785e8db80cbadf4fc8a 100644 (file)
--- 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?