From 6656fb6af69b13ee9f5992d122662b9bf3e4e256 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Tue, 15 Feb 2000 23:17:23 +0000 Subject: [PATCH] add the #defines Zoid posted to irc --- common/cvar.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/common/cvar.h b/common/cvar.h index 05ac6d9..cae5ffa 100644 --- a/common/cvar.h +++ b/common/cvar.h @@ -71,6 +71,25 @@ typedef struct cvar_s struct cvar_s *next; } cvar_t; +#define CVAR_ARCHIVE 1 // set to cause it to be saved to vars.rc + // used for system variables, not for player + // specific configurations +#define CVAR_USERINFO 2 // sent to server on connect or change +#define CVAR_SERVERINFO 4 // sent in response to front end requests +#define CVAR_SYSTEMINFO 8 // these cvars will be duplicated on all clients +#define CVAR_INIT 16 // don't allow change from console at all, + // but can be set from the command line +#define CVAR_LATCH 32 // will only change when C code next does + // a Cvar_Get(), so it can't be changed + // without proper initialization. modified + // will be set, even though the value hasn't + // changed yet +#define CVAR_ROM 64 // display only, cannot be set by user at all +#define CVAR_USER_CREATED 128 // created by a set command +#define CVAR_TEMP 256 // can be set even when cheats are disabled, but is not archived +#define CVAR_CHEAT 512 // can not be changed if cheats are disabled +#define CVAR_NORESTART 1024 // do not clear when a cvar_restart is issued + void Cvar_RegisterVariable (cvar_t *variable); // registers a cvar that allready has the name, string, and optionally the