Fix a bug in the ghost items code, which was causing team items to not ghost properly.
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 11 Jul 2010 15:09:54 +0000 (18:09 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 11 Jul 2010 15:09:54 +0000 (18:09 +0300)
qcsrc/server/t_items.qc

index cb8f0b1025bd204260b6ea396918afad7e890268..4da9a3d08a877bb2fdee3b1b5e96f849125db1f4 100644 (file)
@@ -112,7 +112,7 @@ void Item_Show (entity e, float mode)
                e.model = e.mdl;
                e.solid = SOLID_NOT;
                e.colormod = stov(cvar_string("g_ghost_items_color"));
-               self.glowmod = self.colormod;
+               e.glowmod = e.colormod;
                e.alpha = g_ghost_items;
                e.customizeentityforclient = func_null;
 
@@ -124,7 +124,7 @@ void Item_Show (entity e, float mode)
                e.model = string_null;
                e.solid = SOLID_NOT;
                e.colormod = stov(cvar_string("g_ghost_items_color"));
-               self.glowmod = self.colormod;
+               e.glowmod = e.colormod;
                e.alpha = 0;
                e.customizeentityforclient = func_null;