]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/bot/default/havocbot/havocbot.qc
Convert 5 trivial Item_* functions to macros
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / bot / default / havocbot / havocbot.qc
index 477b1c14f19c2574a7e7a5ee53081bf73b98dd68..c8855660a041ea77d9ad16b68d436f2d10009ca6 100644 (file)
@@ -801,7 +801,7 @@ void havocbot_movetogoal(entity this)
                        {
                                if (IS_DEAD(this.goalcurrent))
                                {
-                                       IL_EACH(g_items, it.enemy == this.goalcurrent && Item_IsLoot(it),
+                                       IL_EACH(g_items, it.enemy == this.goalcurrent && ITEM_IS_LOOT(it),
                                        {
                                                if (vdist(it.origin - this.goalcurrent.death_origin, <, 50))
                                                {
@@ -814,7 +814,7 @@ void havocbot_movetogoal(entity this)
                                                }
                                        });
                                }
-                               if (!Item_IsLoot(this.goalcurrent))
+                               if (!ITEM_IS_LOOT(this.goalcurrent))
                                {
                                        navigation_goalrating_timeout_force(this);
                                        return;