]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix compatibility with legacy maps by treating "droppedweapon" classname as loot...
authorMario <mario.mario@y7mail.com>
Sun, 12 Jul 2020 16:03:36 +0000 (02:03 +1000)
committerMario <mario.mario@y7mail.com>
Sun, 12 Jul 2020 16:03:36 +0000 (02:03 +1000)
qcsrc/server/items.qc

index b21df78e3f247cb53b809446f95a555c25c86bcb..ab53a10fc3770f421d8779ecf163f3742652a900 100644 (file)
@@ -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)