X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=cvar.h;h=636ca40b6c0c963f0e55c74e6cc078e5b559ea40;hb=c8cf0c5bbc5d8f0515a8c824aab7f5ad186db7d3;hp=9014c50fb5ad4c52ca237ab023e6f2eacb427e26;hpb=c72641f5e795ed0e0d58a38d79860cc92597e4da;p=xonotic%2Fdarkplaces.git diff --git a/cvar.h b/cvar.h index 9014c50f..636ca40b 100644 --- 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;