From: terencehill Date: Sat, 30 Apr 2022 17:56:17 +0000 (+0200) Subject: Fix player glow color not applied to dropped weapons X-Git-Tag: xonotic-v0.8.5~50 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=030b8b89c6ad1c1445e0643eb9c86f7e1c56526c;p=xonotic%2Fxonotic-data.pk3dir.git Fix player glow color not applied to dropped weapons --- diff --git a/qcsrc/server/items/items.qc b/qcsrc/server/items/items.qc index ed39c7bca..99c0165fd 100644 --- a/qcsrc/server/items/items.qc +++ b/qcsrc/server/items/items.qc @@ -1094,7 +1094,6 @@ void _StartItem(entity this, entity def, float defaultrespawntime, float default // support skinned models for powerups this.skin = def.m_skin; - this.glowmod = def.m_color; setsize (this, this.pos1 = def.m_mins, this.pos2 = def.m_maxs); @@ -1110,6 +1109,8 @@ void _StartItem(entity this, entity def, float defaultrespawntime, float default if(Item_IsLoot(this)) this.gravity = 1; + else + this.glowmod = def.m_color; if(def.instanceOfWeaponPickup) {