From 9ac8d4be0875a357b45f4ebe2eac6b00bf21fabc Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Tue, 10 Jan 2012 12:05:33 +0100 Subject: [PATCH] fix the colormod fix --- qcsrc/client/csqcmodel_hooks.qc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); } } -- 2.39.2