projects
/
xonotic
/
xonotic-data.pk3dir.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00297c7
)
Fix the placeholders %y, %l, %d (used in chat to find the nearest weapons/powerups...
author
terencehill <piuntn@gmail.com>
Sat, 10 Jul 2010 12:36:02 +0000
(14:36 +0200)
committer
terencehill <piuntn@gmail.com>
Sat, 10 Jul 2010 12:36:02 +0000
(14:36 +0200)
qcsrc/server/t_items.qc
patch
|
blob
|
history
diff --git
a/qcsrc/server/t_items.qc
b/qcsrc/server/t_items.qc
index 537b5ef49388bc1b315d5fc8aa1fef2f1bb877b4..63e6a2b5284168a86ac26f236830262d6584fa6a 100644
(file)
--- 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((item
id & (IT_STRENGTH | IT_INVINCIBLE | IT_HEALTH | IT_ARMOR | IT_KEY1 | IT_KEY2)) || (weaponid & WEPBIT_ALL
))
+ if((item
flags & (FL_POWERUP | FL_WEAPON)) || (itemid & (IT_HEALTH | IT_ARMOR | IT_KEY1 | IT_KEY2)
))
self.target = "###item###"; // for finding the nearest item using find()
}