From: terencehill Date: Sat, 10 Jul 2010 12:36:02 +0000 (+0200) Subject: Fix the placeholders %y, %l, %d (used in chat to find the nearest weapons/powerups... X-Git-Tag: xonotic-v0.1.0preview~454^2~2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=be39916adfa6ee75641d1d847fed5e1515bcb109;p=xonotic%2Fxonotic-data.pk3dir.git 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). --- diff --git a/qcsrc/server/t_items.qc b/qcsrc/server/t_items.qc index 537b5ef49..63e6a2b52 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() }