diff options
author | M. Kristall <mkpdev@gmail.com> | 2011-04-29 01:27:31 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:18:07 +0000 |
commit | 9192bceadf356aa5bb77069adee90f087250459a (patch) | |
tree | 75c9aa7ccad18332c6f0989898a205734769a0ee | |
parent | 8c29a963cca67730760a47455387c6871cc03212 (diff) |
* g_disabled* cvars should not persist
-rw-r--r-- | src/game/g_main.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/game/g_main.c b/src/game/g_main.c index af6cc3b5..44ed6182 100644 --- a/src/game/g_main.c +++ b/src/game/g_main.c @@ -148,6 +148,9 @@ vmCvar_t g_tag; static char cv_gravity[ MAX_CVAR_VALUE_STRING ]; static char cv_humanMaxStage[ MAX_CVAR_VALUE_STRING ]; static char cv_alienMaxStage[ MAX_CVAR_VALUE_STRING ]; +static char cv_disabledBuildables[ MAX_CVAR_VALUE_STRING ]; +static char cv_disabledClasses[ MAX_CVAR_VALUE_STRING ]; +static char cv_disabledEquipment[ MAX_CVAR_VALUE_STRING ]; static cvarTable_t gameCvarTable[ ] = { @@ -232,9 +235,9 @@ static cvarTable_t gameCvarTable[ ] = { &g_unlagged, "g_unlagged", "1", CVAR_SERVERINFO | CVAR_ARCHIVE, 0, qtrue }, - { &g_disabledEquipment, "g_disabledEquipment", "", CVAR_ROM | CVAR_SYSTEMINFO, 0, qfalse }, - { &g_disabledClasses, "g_disabledClasses", "", CVAR_ROM | CVAR_SYSTEMINFO, 0, qfalse }, - { &g_disabledBuildables, "g_disabledBuildables", "", CVAR_ROM | CVAR_SYSTEMINFO, 0, qfalse }, + { &g_disabledEquipment, "g_disabledEquipment", "", CVAR_ROM | CVAR_SYSTEMINFO, 0, qfalse, cv_disabledEquipment }, + { &g_disabledClasses, "g_disabledClasses", "", CVAR_ROM | CVAR_SYSTEMINFO, 0, qfalse, cv_disabledClasses }, + { &g_disabledBuildables, "g_disabledBuildables", "", CVAR_ROM | CVAR_SYSTEMINFO, 0, qfalse, cv_disabledBuildables }, { &g_sayAreaRange, "g_sayAreaRange", "1000", CVAR_ARCHIVE, 0, qtrue }, |