]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Don't include hidden weapons in most weapons arena
authorMario <mario@smbclan.net>
Tue, 16 Jul 2019 14:14:12 +0000 (00:14 +1000)
committerMario <mario@smbclan.net>
Tue, 16 Jul 2019 14:15:02 +0000 (00:15 +1000)
qcsrc/server/miscfunctions.qc

index 9c1596f5d033551167bb5f130a7989e43fb51a16..8be233b6704654627131328a1311eed6df3a6d4c 100644 (file)
@@ -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")