From: Rudolf Polzer Date: Sun, 12 Dec 2010 17:12:43 +0000 (+0100) Subject: allow g_weapon_stay on pure servers X-Git-Tag: xonotic-v0.1.0preview~45 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=23702e369ee30e55af21f87d52cb15a84e7fd5ee;p=xonotic%2Fxonotic-data.pk3dir.git allow g_weapon_stay on pure servers --- diff --git a/qcsrc/server/g_world.qc b/qcsrc/server/g_world.qc index 18ddcdae8..30a63ba7d 100644 --- a/qcsrc/server/g_world.qc +++ b/qcsrc/server/g_world.qc @@ -235,6 +235,7 @@ void cvar_changes_init() k = bufstr_get(h, i); #define BADPREFIX(p) if(substring(k, 0, strlen(p)) == p) continue +#define BADPRESUFFIX(p,s) if(substring(k, 0, strlen(p)) == p && substring(k, -strlen(s), -1) == s) continue #define BADCVAR(p) if(k == p) continue // internal BADPREFIX("csqc_"); @@ -414,6 +415,7 @@ void cvar_changes_init() BADCVAR("g_nexball_goallimit"); BADCVAR("g_runematch_point_limit"); BADCVAR("g_start_delay"); + BADCVAR("g_weapon_stay"); BADPRESUFFIX("g_", "_weapon_stay"); BADCVAR("hostname"); BADCVAR("log_file"); BADCVAR("maxplayers");