From cb1e78beeeae8ff8f78310cff3bc30e9b9dce8b8 Mon Sep 17 00:00:00 2001 From: Christopher Schwarz Date: Sun, 7 Aug 2011 23:19:33 +0000 Subject: * (bug 4998) Alternate fix for r2211 (/dev/humancontroller) --- src/game/g_main.c | 9 +++------ src/game/g_spawn.c | 12 ++++++------ 2 files changed, 9 insertions(+), 12 deletions(-) (limited to 'src') diff --git a/src/game/g_main.c b/src/game/g_main.c index 05035c84..dc9cdd9d 100644 --- a/src/game/g_main.c +++ b/src/game/g_main.c @@ -148,9 +148,6 @@ 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[ ] = { @@ -235,9 +232,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, 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_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_sayAreaRange, "g_sayAreaRange", "1000", CVAR_ARCHIVE, 0, qtrue }, diff --git a/src/game/g_spawn.c b/src/game/g_spawn.c index 0bdb366a..1ebc04d0 100644 --- a/src/game/g_spawn.c +++ b/src/game/g_spawn.c @@ -612,14 +612,14 @@ void SP_worldspawn( void ) if( G_SpawnString( "alienMaxStage", "", &s ) ) trap_Cvar_Set( "g_alienMaxStage", s ); - if( G_SpawnString( "disabledEquipment", "", &s ) ) - trap_Cvar_Set( "g_disabledEquipment", s ); + G_SpawnString( "disabledEquipment", "", &s ); + trap_Cvar_Set( "g_disabledEquipment", s ); - if( G_SpawnString( "disabledClasses", "", &s ) ) - trap_Cvar_Set( "g_disabledClasses", s ); + G_SpawnString( "disabledClasses", "", &s ); + trap_Cvar_Set( "g_disabledClasses", s ); - if( G_SpawnString( "disabledBuildables", "", &s ) ) - trap_Cvar_Set( "g_disabledBuildables", s ); + G_SpawnString( "disabledBuildables", "", &s ); + trap_Cvar_Set( "g_disabledBuildables", s ); g_entities[ ENTITYNUM_WORLD ].s.number = ENTITYNUM_WORLD; g_entities[ ENTITYNUM_WORLD ].classname = "worldspawn"; -- cgit