From: Rudolf Polzer Date: Mon, 14 Nov 2011 15:13:22 +0000 (+0100) Subject: oops, queried the wrong player here X-Git-Tag: xonotic-v0.6.0~74^2~100^2~72 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=996583d4f88e12e66c81ce7d22930afd5f27c74e;p=xonotic%2Fxonotic-data.pk3dir.git oops, queried the wrong player here --- diff --git a/qcsrc/csqcmodel/settings.qh b/qcsrc/csqcmodel/settings.qh index 0f1508ac4..cb1f7822a 100644 --- a/qcsrc/csqcmodel/settings.qh +++ b/qcsrc/csqcmodel/settings.qh @@ -15,7 +15,7 @@ #define CSQCMODELS_HOOK_PREUPDATE #define CSQCMODELS_HOOK_POSTUPDATE #define CSQCMODELS_HOOK_PREDRAW \ - self.glowmod = colormapPaletteColor(((self.colormap >= 1024) ? (self.colormap & 0xFF) : stof(getplayerkey(self.entnum, "colors"))), TRUE) * 2; + self.glowmod = colormapPaletteColor(((self.colormap >= 1024) ? (self.colormap & 0xFF) : stof(getplayerkey(self.entnum - 1, "colors"))), TRUE) * 2; // mod must define: //vector PL_MIN = ...;