]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/weapons/throwing.qc
Convert 5 trivial Item_* functions to macros
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / weapons / throwing.qc
index a979b7b0c65f9689e33be33270414fca26d37ba7..782ee3aa39cc5f7c5e83cce6e0ca6bd05a48db95 100644 (file)
@@ -25,7 +25,7 @@ float W_ThrowNewWeapon(entity own, float wpn, float doreduce, vector org, vector
        Resource ammotype = info.ammo_type;
 
        entity wep = spawn();
-       Item_SetLoot(wep, true);
+       ITEM_SET_LOOT(wep, true);
        setorigin(wep, org);
        wep.velocity = velo;
        wep.owner = wep.enemy = own;
@@ -38,7 +38,7 @@ float W_ThrowNewWeapon(entity own, float wpn, float doreduce, vector org, vector
 
        if(WepSet_FromWeapon(REGISTRY_GET(Weapons, wpn)) & WEPSET_SUPERWEAPONS)
        {
-               Item_SetExpiring(wep, true);
+               ITEM_SET_EXPIRING(wep, true);
                if(own.items & IT_UNLIMITED_SUPERWEAPONS)
                {
                        wep.superweapons_finished = time + autocvar_g_balance_superweapons_time;