projects
/
xonotic
/
xonotic-data.pk3dir.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
258be10
)
Fix compatibility with legacy maps by treating "droppedweapon" classname as loot...
author
Mario <mario.mario@y7mail.com>
Sun, 12 Jul 2020 16:03:36 +0000
(
02:03
+1000)
committer
Mario <mario.mario@y7mail.com>
Sun, 12 Jul 2020 16:03:36 +0000
(
02:03
+1000)
qcsrc/server/items.qc
patch
|
blob
|
history
diff --git
a/qcsrc/server/items.qc
b/qcsrc/server/items.qc
index
b21df78
..
ab53a10
100644
(file)
--- a/
qcsrc/server/items.qc
+++ b/
qcsrc/server/items.qc
@@
-105,7
+105,7
@@
bool Item_InitializeLoot(entity item, string class_name, vector position,
bool Item_IsLoot(entity item)
{
- return item.m_isloot;
+ return item.m_isloot
|| item.classname == "droppedweapon"
;
}
void Item_SetLoot(entity item, bool loot)