save seta cvars with the seta command, and normal ones without it
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 20 Dec 2004 20:00:46 +0000 (20:00 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 20 Dec 2004 20:00:46 +0000 (20:00 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4873 d7cf8633-e32d-0410-b094-e92efae38249

cvar.c

diff --git a/cvar.c b/cvar.c
index 4274203..cdd4def 100644 (file)
--- a/cvar.c
+++ b/cvar.c
@@ -433,7 +433,7 @@ void Cvar_WriteVariables (qfile_t *f)
 
        for (var = cvar_vars ; var ; var = var->next)
                if (var->flags & CVAR_SAVE)
-                       FS_Printf(f, "%s \"%s\"\n", var->name, var->string);
+                       FS_Printf(f, "%s%s \"%s\"\n", var->flags & CVAR_ALLOCATED ? "seta " : "", var->name, var->string);
 }