]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cvar.h
allow linking to libvorbis
[xonotic/darkplaces.git] / cvar.h
diff --git a/cvar.h b/cvar.h
index 9014c50fb5ad4c52ca237ab023e6f2eacb427e26..636ca40b6c0c963f0e55c74e6cc078e5b559ea40 100644 (file)
--- a/cvar.h
+++ b/cvar.h
@@ -68,7 +68,9 @@ interface from being ambiguous.
 // this means that this cvar should update a userinfo key but the name does not correspond directly to the userinfo key to update, and may require additional conversion ("_cl_color" for example should update "topcolor" and "bottomcolor")
 #define CVAR_NQUSERINFOHACK 64
 // used to determine if flags is valid
-#define CVAR_MAXFLAGSVAL 127
+#define CVAR_NORESETTODEFAULTS 128
+// for engine-owned cvars that must not be reset on gametype switch (e.g. scr_screenshot_name, which otherwise isn't set to the mod name properly)
+#define CVAR_MAXFLAGSVAL 255
 // for internal use only!
 #define CVAR_DEFAULTSET (1<<30)
 #define CVAR_ALLOCATED (1<<31)
@@ -122,6 +124,10 @@ typedef struct cvar_s
 
        char *defstring;
 
+       unsigned int globaldefindex_progid[3];
+       int globaldefindex[3];
+       int globaldefindex_stringno[3];
+
        //menucvar_t menuinfo;
        struct cvar_s *next;
        struct cvar_s *nextonhashchain;