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 b21df78..ab53a10 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)