From: Mario Date: Thu, 13 Nov 2014 18:37:17 +0000 (+1100) Subject: Allow g_weaponarena 1 to do same function as g_weaponarena all X-Git-Tag: xonotic-v0.8.0~155^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=37e27afc3274290a93bb972059bbdd0d042be621;p=xonotic%2Fxonotic-data.pk3dir.git Allow g_weaponarena 1 to do same function as g_weaponarena all --- diff --git a/qcsrc/menu/xonotic/dialog_multiplayer_create_mutators.c b/qcsrc/menu/xonotic/dialog_multiplayer_create_mutators.c index 18c376b50..055f5449f 100644 --- a/qcsrc/menu/xonotic/dialog_multiplayer_create_mutators.c +++ b/qcsrc/menu/xonotic/dialog_multiplayer_create_mutators.c @@ -29,7 +29,7 @@ string WeaponArenaString() s = cvar_string("g_weaponarena"); if(s == "0") return ""; - if(s == "all") + if(s == "all" || s == "1") return _("All Weapons Arena"); if(s == "most") return _("Most Weapons Arena"); @@ -130,7 +130,7 @@ float checkCompatibility_newtoys(entity me) return 0; if(cvar_string("g_weaponarena") == "most") return 1; - if(cvar_string("g_weaponarena") == "all") + if(cvar_string("g_weaponarena") == "all" || cvar_string("g_weaponarena") == "1") return 1; if(cvar_string("g_weaponarena") != "0") return 0; @@ -142,7 +142,7 @@ float checkCompatibility_weaponarena_weapon(entity me) return 0; if(cvar_string("g_weaponarena") == "most") return 0; - if(cvar_string("g_weaponarena") == "all") + if(cvar_string("g_weaponarena") == "all" || cvar_string("g_weaponarena") == "1") return 0; if(cvar_string("g_weaponarena") == "0") return 0; diff --git a/qcsrc/server/miscfunctions.qc b/qcsrc/server/miscfunctions.qc index 55e01b245..40421bbc0 100644 --- a/qcsrc/server/miscfunctions.qc +++ b/qcsrc/server/miscfunctions.qc @@ -708,7 +708,7 @@ void readplayerstartcvars() { // forcibly turn off weaponarena } - else if (s == "all") + else if (s == "all" || s == "1") { g_weaponarena = 1; g_weaponarena_list = "All Weapons";