From: Rudolf Polzer Date: Fri, 9 Dec 2011 21:47:09 +0000 (+0100) Subject: fix auto glowmod calculation X-Git-Tag: xonotic-v0.6.0~74^2~100^2~5 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b96bb305f056b6bc42e0691657ac9414ea5e5691;p=xonotic%2Fxonotic-data.pk3dir.git fix auto glowmod calculation --- diff --git a/qcsrc/client/csqcmodel_hooks.qc b/qcsrc/client/csqcmodel_hooks.qc index 893097bbd..1f324807b 100644 --- a/qcsrc/client/csqcmodel_hooks.qc +++ b/qcsrc/client/csqcmodel_hooks.qc @@ -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';