]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cvar.c
added Cvar_UnlockDefaults function (not console accessible)
[xonotic/darkplaces.git] / cvar.c
diff --git a/cvar.c b/cvar.c
index 6767ea61418f9893c8d88fac2da357a80ec92489..8e125cbe349d201de51fc00d9ab3f004efd3455e 100644 (file)
--- a/cvar.c
+++ b/cvar.c
@@ -505,6 +505,15 @@ qboolean   Cvar_Command (void)
 }
 
 
+void Cvar_UnlockDefaults (void)
+{
+       cvar_t *var;
+       // unlock the default values of all cvars
+       for (var = cvar_vars ; var ; var = var->next)
+               var->flags &= ~CVAR_DEFAULTSET;
+}
+
+
 void Cvar_LockDefaults_f (void)
 {
        cvar_t *var;