]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/mutators/mutator/random_items/sv_random_items.qc
Convert 5 trivial Item_* functions to macros
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / mutators / mutator / random_items / sv_random_items.qc
index ed2bd91861d9afc3ba1f9e7993f7df095ad92193..9f39278f6f652c48c495613d1124db3f90a2f2f9 100644 (file)
@@ -332,7 +332,7 @@ MUTATOR_HOOKFUNCTION(random_items, FilterItem, CBC_ORDER_LAST)
                return false;
        }
        entity item = M_ARGV(0, entity);
-       if (Item_IsLoot(item))
+       if (ITEM_IS_LOOT(item))
        {
                return false;
        }
@@ -352,7 +352,7 @@ MUTATOR_HOOKFUNCTION(random_items, ItemTouched, CBC_ORDER_LAST)
                return;
        }
        entity item = M_ARGV(0, entity);
-       if (Item_IsLoot(item))
+       if (ITEM_IS_LOOT(item))
        {
                return;
        }