From: Mario Date: Sun, 12 Jul 2020 16:03:36 +0000 (+1000) Subject: Fix compatibility with legacy maps by treating "droppedweapon" classname as loot... X-Git-Tag: xonotic-v0.8.5~879 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b97ce317ccc19ba79d66d8bd5ec8c632388740e6;p=xonotic%2Fxonotic-data.pk3dir.git Fix compatibility with legacy maps by treating "droppedweapon" classname as loot items --- diff --git a/qcsrc/server/items.qc b/qcsrc/server/items.qc index b21df78e3..ab53a10fc 100644 --- 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)