]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Restore the ability to spawn hidden weapons in maps 1420/head
authorMario <mario.mario@y7mail.com>
Sun, 5 Jan 2025 01:30:01 +0000 (11:30 +1000)
committerMario <mario.mario@y7mail.com>
Sun, 5 Jan 2025 01:30:01 +0000 (11:30 +1000)
qcsrc/server/weapons/spawning.qc

index 8ce5c570b9dcc1ed462cbc2fbce883524bfdbef7..d8930c33d09d2041c19079115a91882b2a0a211c 100644 (file)
@@ -33,7 +33,7 @@ void weapon_defaultspawnfunc(entity this, Weapon wpn)
        this.classname = wpn.m_canonical_spawnfunc;
        if (!ITEM_IS_LOOT(this) && !this.m_isreplaced)
        {
-               if (wpn.spawnflags & (WEP_FLAG_MUTATORBLOCKED | WEP_FLAG_HIDDEN))
+               if (wpn.spawnflags & WEP_FLAG_MUTATORBLOCKED)
                {
                        //LOG_WARNF("Attempted to spawn a mutator-blocked weapon rejected: prvm_edict server %i", this);
                        startitem_failed = true;