]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
fix auto glowmod calculation
authorRudolf Polzer <divverent@xonotic.org>
Fri, 9 Dec 2011 21:47:09 +0000 (22:47 +0100)
committerRudolf Polzer <divverent@xonotic.org>
Fri, 9 Dec 2011 21:47:09 +0000 (22:47 +0100)
qcsrc/client/csqcmodel_hooks.qc

index 893097bbd1c329029d88666bafc602b76716ea67..1f324807b9d4bd16c73a4676ef2524cfcd4e9f47 100644 (file)
@@ -12,7 +12,7 @@ void CSQCModel_Hook_PreDraw(float isplayer)
        if(isplayer)
        {
                if(self.colormap > 0)
-                       self.glowmod = colormapPaletteColor(((self.colormap >= 1024) ? (self.colormap & 0xFF) : stof(getplayerkeyvalue(self.colormap - 1, "colors"))), TRUE) * 2;
+                       self.glowmod = colormapPaletteColor(((self.colormap >= 1024) ? self.colormap : stof(getplayerkeyvalue(self.colormap - 1, "colors"))) & 0x0F, TRUE) * 2;
                else
                        self.glowmod = '1 1 1';