From: Mario Date: Tue, 16 Jul 2019 14:14:12 +0000 (+1000) Subject: Don't include hidden weapons in most weapons arena X-Git-Tag: xonotic-v0.8.5~1461 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1d6ce80ced042ab439a9fb762c931a4b9f524c34;p=xonotic%2Fxonotic-data.pk3dir.git Don't include hidden weapons in most weapons arena --- diff --git a/qcsrc/server/miscfunctions.qc b/qcsrc/server/miscfunctions.qc index 9c1596f5d..8be233b67 100644 --- a/qcsrc/server/miscfunctions.qc +++ b/qcsrc/server/miscfunctions.qc @@ -583,9 +583,8 @@ void readplayerstartcvars() g_weaponarena = 1; g_weaponarena_list = "Most Weapons"; FOREACH(Weapons, it != WEP_Null, { - if(!(it.spawnflags & WEP_FLAG_MUTATORBLOCKED)) - if(it.spawnflags & WEP_FLAG_NORMAL) - g_weaponarena_weapons |= (it.m_wepset); + if(!(it.spawnflags & WEP_FLAG_MUTATORBLOCKED) && (it.spawnflags & WEP_FLAG_NORMAL) && !(it.spawnflags & WEP_FLAG_HIDDEN)) + g_weaponarena_weapons |= (it.m_wepset); }); } else if (s == "none")