From: Rudolf Polzer Date: Tue, 10 Jan 2012 11:05:33 +0000 (+0100) Subject: fix the colormod fix X-Git-Tag: xonotic-v0.6.0~188^2^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9ac8d4be0875a357b45f4ebe2eac6b00bf21fabc;p=xonotic%2Fxonotic-data.pk3dir.git fix the colormod fix --- diff --git a/qcsrc/client/csqcmodel_hooks.qc b/qcsrc/client/csqcmodel_hooks.qc index 7204981bd..b40f054ac 100644 --- a/qcsrc/client/csqcmodel_hooks.qc +++ b/qcsrc/client/csqcmodel_hooks.qc @@ -465,8 +465,9 @@ void CSQCPlayer_GlowMod_Apply(void) { self.glowmod = self.glowmod * bound(0, 1 - (time - self.death_time) / autocvar_cl_deathglow, 1); // prevent the zero vector - if(self.glowmod_x == 0) - self.glowmod_x = -1; + self.glowmod_x = max(self.glowmod_x, 0.0001); + self.glowmod_y = max(self.glowmod_y, 0.0001); + self.glowmod_z = max(self.glowmod_z, 0.0001); } }