From: Mircea Kitsune Date: Sun, 11 Jul 2010 15:09:54 +0000 (+0300) Subject: Fix a bug in the ghost items code, which was causing team items to not ghost properly. X-Git-Tag: xonotic-v0.1.0preview~455^2 X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=commitdiff_plain;h=43014c8bf1d0e003200bfb04cfe30b7523b7c561;hp=ac1e8190b9529eb842a25bc277f4d2f0abcaa4ff Fix a bug in the ghost items code, which was causing team items to not ghost properly. --- diff --git a/qcsrc/server/t_items.qc b/qcsrc/server/t_items.qc index cb8f0b1025..4da9a3d08a 100644 --- a/qcsrc/server/t_items.qc +++ b/qcsrc/server/t_items.qc @@ -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;