]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix player glow color not applied to dropped weapons
authorterencehill <piuntn@gmail.com>
Sat, 30 Apr 2022 17:56:17 +0000 (19:56 +0200)
committerterencehill <piuntn@gmail.com>
Sat, 30 Apr 2022 17:56:45 +0000 (19:56 +0200)
qcsrc/server/items/items.qc

index ed39c7bca91e11fcb3d11d32f590c737379e0355..99c0165fd3a1b51061979bf4ff3fb384ab3bcdd2 100644 (file)
@@ -1094,7 +1094,6 @@ void _StartItem(entity this, entity def, float defaultrespawntime, float default
 
        // support skinned models for powerups
        this.skin = def.m_skin;
 
        // 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);
 
 
        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;
 
        if(Item_IsLoot(this))
                this.gravity = 1;
+       else
+               this.glowmod = def.m_color;
 
        if(def.instanceOfWeaponPickup)
        {
 
        if(def.instanceOfWeaponPickup)
        {