From: MirceaKitsune Date: Sun, 5 Sep 2010 23:44:02 +0000 (+0300) Subject: Fix an old bug from Nexuiz X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=731a7170ec1a4b5ad052415224eb87e05e765bc9;p=voretournament%2Fvoretournament.git Fix an old bug from Nexuiz --- diff --git a/data/qcsrc/server/t_items.qc b/data/qcsrc/server/t_items.qc index db0e5a62..f37e3a2d 100644 --- a/data/qcsrc/server/t_items.qc +++ b/data/qcsrc/server/t_items.qc @@ -67,7 +67,7 @@ void Item_Show (entity e, float mode) e.model = e.mdl; e.solid = SOLID_TRIGGER; e.colormod = '0 0 0'; - self.glowmod = self.colormod; + e.glowmod = e.colormod; e.alpha = 0; e.customizeentityforclient = func_null; @@ -79,7 +79,7 @@ void Item_Show (entity e, float mode) e.model = string_null; e.solid = SOLID_NOT; e.colormod = '0 0 0'; - self.glowmod = self.colormod; + e.glowmod = e.colormod; e.alpha = 0; e.customizeentityforclient = func_null; @@ -91,7 +91,7 @@ void Item_Show (entity e, float mode) e.model = e.mdl; e.solid = SOLID_TRIGGER; // can STILL be picked up! e.colormod = '0 0 0'; - self.glowmod = self.colormod; + e.glowmod = e.colormod; e.effects |= EF_STARDUST; e.customizeentityforclient = Item_Customize; @@ -103,7 +103,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; @@ -115,7 +115,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;