]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
allow g_weapon_stay on pure servers
authorRudolf Polzer <divverent@alientrap.org>
Sun, 12 Dec 2010 17:12:43 +0000 (18:12 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Sun, 12 Dec 2010 17:12:43 +0000 (18:12 +0100)
qcsrc/server/g_world.qc

index 18ddcdae85bc66c778c0217dacba93b2d3c08b4e..30a63ba7d44b027fb2e58c160142d900ba000820 100644 (file)
@@ -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");