]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/weapons/spawning.qc
Convert 5 trivial Item_* functions to macros
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / weapons / spawning.qc
index 99049217f3a12e8a854ddd7f1dd6f45e0f32fc6c..3dd040b97132c52db28b70e0ed5d444a97dc3868 100644 (file)
@@ -31,7 +31,7 @@ void weapon_defaultspawnfunc(entity this, Weapon wpn)
 {
        wpn = wpn.m_spawnfunc_hookreplace(wpn, this);
        this.classname = wpn.m_canonical_spawnfunc;
-       if (!Item_IsLoot(this) && !this.m_isreplaced)
+       if (!ITEM_IS_LOOT(this) && !this.m_isreplaced)
        {
                if (wpn.spawnflags & WEP_FLAG_MUTATORBLOCKED)
                {
@@ -79,7 +79,7 @@ void weapon_defaultspawnfunc(entity this, Weapon wpn)
                }
        }
 
-       if(!Item_IsLoot(this))
+       if(!ITEM_IS_LOOT(this))
                weaponsInMapAll |= WepSet_FromWeapon(wpn);
 
        if (!Item_IsDefinitionAllowed(wpn.m_pickup))