]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/weapons/spawning.qc
Fix a minor typo in a comment
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / weapons / spawning.qc
index 6a2d65db2075b19a02a74cbba26adf4f47c8d17b..0685062f58787167e8a463576ba98638becf72eb 100644 (file)
@@ -60,7 +60,9 @@ void weapon_defaultspawnfunc(entity this, Weapon wpn)
                                if(wep != WEP_Null)
                                {
                                        entity replacement = spawn();
-                                       copyentity(this, replacement);
+                                       Item_CopyFields(this, replacement);
+                                       // DO NOT USE, causes #2792
+                                       //copyentity(this, replacement);
                                        replacement.m_isreplaced = true;
                                        weapon_defaultspawnfunc(replacement, wep);
                                }
@@ -153,7 +155,7 @@ void weapon_defaultspawnfunc(entity this, Weapon wpn)
        if(!this.owner)
                this.glowmod = wpn.wpcolor;
        else
-               this.glowmod = colormapPaletteColor(this.owner.clientcolors & 0x0F, true) * 2;
+               this.glowmod = colormapPaletteColor(this.owner.clientcolors & 0x0F, true);
 
        GameItem def = wpn.m_pickup;
        _StartItem(