]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cvar.c
vid: implement monitor selection with instant cvar changes
[xonotic/darkplaces.git] / cvar.c
diff --git a/cvar.c b/cvar.c
index e95344b5d2516d3cce7bb5e4559b9efcfde3ccba..e711df4624bdad92dc87a3806b3b2ac5c26bb0fa 100644 (file)
--- a/cvar.c
+++ b/cvar.c
@@ -390,7 +390,7 @@ static void Cvar_SetQuick_Internal (cvar_t *var, const char *value)
        changed = strcmp(var->string, value) != 0;
        // LadyHavoc: don't reallocate when there is no change
        if (!changed)
-               return;
+               goto cvar_callback;
 
        // LadyHavoc: don't reallocate when the buffer is the same size
        valuelen = strlen(value);
@@ -423,6 +423,7 @@ static void Cvar_SetQuick_Internal (cvar_t *var, const char *value)
 
        Cvar_UpdateAutoCvar(var);
 
+cvar_callback:
        // Call the function stored in the cvar for bounds checking, cleanup, etc
        Cvar_Callback(var);
 }