]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Filter mutator blocked weapons from the weapon arena selection menu Mario/menu_ballstealer_fix 1385/head
authorMario <mario.mario@y7mail.com>
Sat, 16 Nov 2024 07:42:15 +0000 (17:42 +1000)
committerMario <mario.mario@y7mail.com>
Sat, 16 Nov 2024 07:42:15 +0000 (17:42 +1000)
qcsrc/menu/xonotic/dialog_multiplayer_create_mutators.qc

index 20f72863e9924ef62124adb03fdfadd958eeb482..337f10e0ce6a4a0230c056f63bff32c9ef959820 100644 (file)
@@ -166,6 +166,8 @@ void XonoticMutatorsDialog_fill(entity me)
                w = REGISTRY_GET(Weapons, i);
                if (w.spawnflags & (WEP_FLAG_HIDDEN | WEP_FLAG_SPECIALATTACK))
                        continue;
+               if (w.spawnflags & WEP_FLAG_MUTATORBLOCKED)
+                       continue;
                if ((j % 3) == 0)
                {
                        me.TR(me);