From be39916adfa6ee75641d1d847fed5e1515bcb109 Mon Sep 17 00:00:00 2001 From: terencehill Date: Sat, 10 Jul 2010 14:36:02 +0200 Subject: [PATCH] Fix the placeholders %y, %l, %d (used in chat to find the nearest weapons/powerups) to find megahealth in minstagib (hackishly labeled IT_NAILS) and Fuel regenerator (IT_FUEL_REGEN). --- qcsrc/server/t_items.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/server/t_items.qc b/qcsrc/server/t_items.qc index 537b5ef493..63e6a2b528 100644 --- a/qcsrc/server/t_items.qc +++ b/qcsrc/server/t_items.qc @@ -837,7 +837,7 @@ void StartItem (string itemmodel, string pickupsound, float defaultrespawntime, else precache_sound ("misc/itemrespawn.wav"); - if((itemid & (IT_STRENGTH | IT_INVINCIBLE | IT_HEALTH | IT_ARMOR | IT_KEY1 | IT_KEY2)) || (weaponid & WEPBIT_ALL)) + if((itemflags & (FL_POWERUP | FL_WEAPON)) || (itemid & (IT_HEALTH | IT_ARMOR | IT_KEY1 | IT_KEY2))) self.target = "###item###"; // for finding the nearest item using find() } -- 2.39.2