From 53c3a5ad0d956ec6841777a07b6b159812f7877a Mon Sep 17 00:00:00 2001 From: div0 Date: Mon, 29 Dec 2008 19:30:04 +0000 Subject: [PATCH] allow to bypass cvar checking (cvar_check_default bypass) git-svn-id: svn://svn.icculus.org/nexuiz/trunk@5355 f962a42d-fe04-0410-a3ab-8c8b0445ebaa --- data/qcsrc/server/g_world.qc | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/data/qcsrc/server/g_world.qc b/data/qcsrc/server/g_world.qc index 57e796e8a..4deef965d 100644 --- a/data/qcsrc/server/g_world.qc +++ b/data/qcsrc/server/g_world.qc @@ -242,11 +242,14 @@ void spawnfunc_worldspawn (void) remove = remove_safely; // during spawning, watch what you remove! - if(cvar_string("cvar_check_default") != CVAR_CHECK_DEFAULT) - error("Config file mismatch! Please update defaultNexuiz.cfg to match the QuakeC code!"); + if(cvar_string("cvar_check_default") != "bypass") + { + if(cvar_string("cvar_check_default") != CVAR_CHECK_DEFAULT) + error("Config file mismatch! Please update defaultNexuiz.cfg to match the QuakeC code!"); - if(cvar_string("cvar_check_weapons") != CVAR_CHECK_WEAPONS) - error("Config file mismatch! Please update weapons.cfg and weaponsPro.cfg to match the QuakeC code!"); + if(cvar_string("cvar_check_weapons") != CVAR_CHECK_WEAPONS) + error("Config file mismatch! Please update weapons.cfg and weaponsPro.cfg to match the QuakeC code!"); + } compressShortVector_init(); -- 2.39.2