]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Allow g_weaponarena 1 to do same function as g_weaponarena all
authorMario <zacjardine@y7mail.com>
Thu, 13 Nov 2014 18:37:17 +0000 (05:37 +1100)
committerMario <zacjardine@y7mail.com>
Thu, 13 Nov 2014 18:37:17 +0000 (05:37 +1100)
qcsrc/menu/xonotic/dialog_multiplayer_create_mutators.c
qcsrc/server/miscfunctions.qc

index 18c376b503dda2463b9b3f776de54e66048ad2ed..055f5449f302319ed6c230e017f306345e95dc58 100644 (file)
@@ -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;
index 55e01b2453f1672fb72dcd9e68923d1641b9d920..40421bbc0fcd9345490cc5c63dcdac2ef368d481 100644 (file)
@@ -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";