From: bones_was_here Date: Wed, 21 Jul 2021 07:59:25 +0000 (+1000) Subject: Fix target_give by retrieving netname from itemdef X-Git-Tag: xonotic-v0.8.5~352^2~6 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=162915ba84a5593f8f47b626185568a2207f8d51;p=xonotic%2Fxonotic-data.pk3dir.git Fix target_give by retrieving netname from itemdef --- diff --git a/qcsrc/server/compat/quake3.qc b/qcsrc/server/compat/quake3.qc index 11e41f863..e65cbdba3 100644 --- a/qcsrc/server/compat/quake3.qc +++ b/qcsrc/server/compat/quake3.qc @@ -230,7 +230,7 @@ void target_give_init(entity this) else if (it.armorvalue) this.armorvalue += it.armorvalue; - this.netname = cons(this.netname, it.netname); + this.netname = cons(this.netname, (it.itemdef.m_weapon) ? it.itemdef.m_weapon.netname : it.itemdef.netname); } //remove(it); // removing ents in init functions causes havoc, workaround: