]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
Fix an old bug from Nexuiz
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 5 Sep 2010 23:44:02 +0000 (02:44 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 5 Sep 2010 23:44:02 +0000 (02:44 +0300)
data/qcsrc/server/t_items.qc

index db0e5a6215a13ebd009067e0f8eced54c917e9cb..f37e3a2dccd215de5c27a31e3c790a4fbd817aff 100644 (file)
@@ -67,7 +67,7 @@ void Item_Show (entity e, float mode)
                e.model = e.mdl;\r
                e.solid = SOLID_TRIGGER;\r
                e.colormod = '0 0 0';\r
-               self.glowmod = self.colormod;\r
+               e.glowmod = e.colormod;\r
                e.alpha = 0;\r
                e.customizeentityforclient = func_null;\r
 \r
@@ -79,7 +79,7 @@ void Item_Show (entity e, float mode)
                e.model = string_null;\r
                e.solid = SOLID_NOT;\r
                e.colormod = '0 0 0';\r
-               self.glowmod = self.colormod;\r
+               e.glowmod = e.colormod;\r
                e.alpha = 0;\r
                e.customizeentityforclient = func_null;\r
 \r
@@ -91,7 +91,7 @@ void Item_Show (entity e, float mode)
                e.model = e.mdl;\r
                e.solid = SOLID_TRIGGER; // can STILL be picked up!\r
                e.colormod = '0 0 0';\r
-               self.glowmod = self.colormod;\r
+               e.glowmod = e.colormod;\r
                e.effects |= EF_STARDUST;\r
                e.customizeentityforclient = Item_Customize;\r
 \r
@@ -103,7 +103,7 @@ void Item_Show (entity e, float mode)
                e.model = e.mdl;\r
                e.solid = SOLID_NOT;\r
                e.colormod = stov(cvar_string("g_ghost_items_color"));\r
-               self.glowmod = self.colormod;\r
+               e.glowmod = e.colormod;\r
                e.alpha = g_ghost_items;\r
                e.customizeentityforclient = func_null;\r
 \r
@@ -115,7 +115,7 @@ void Item_Show (entity e, float mode)
                e.model = string_null;\r
                e.solid = SOLID_NOT;\r
                e.colormod = stov(cvar_string("g_ghost_items_color"));\r
-               self.glowmod = self.colormod;\r
+               e.glowmod = e.colormod;\r
                e.alpha = 0;\r
                e.customizeentityforclient = func_null;\r
 \r