\7fuse glowmod for nexuiz 2.6 and above (checked using gameversion cvar)
authordiv0 <div0@f962a42d-fe04-0410-a3ab-8c8b0445ebaa>
Fri, 6 Nov 2009 19:12:57 +0000 (19:12 +0000)
committerdiv0 <div0@f962a42d-fe04-0410-a3ab-8c8b0445ebaa>
Fri, 6 Nov 2009 19:12:57 +0000 (19:12 +0000)
git-svn-id: svn://svn.icculus.org/nexuiz/trunk@8217 f962a42d-fe04-0410-a3ab-8c8b0445ebaa

data/qcsrc/server/cl_client.qc

index b05753c..d82a0d5 100644 (file)
@@ -2404,7 +2404,11 @@ void PlayerPreThink (void)
                }
 
                if(frametime)
+               {
+                       if(cvar("gameversion") >= 20600) // only do this for 2.6 and above FIXME remove this check when making 2.6
+                               self.glowmod = colormapPaletteColor(self.clientcolors & 0x0F, TRUE) * 2;
                        player_powerups();
+               }
 
                if (self.deadflag != DEAD_NO)
                {