]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
fix the colormod fix
authorRudolf Polzer <divverent@alientrap.org>
Tue, 10 Jan 2012 11:05:33 +0000 (12:05 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Tue, 10 Jan 2012 11:05:33 +0000 (12:05 +0100)
qcsrc/client/csqcmodel_hooks.qc

index 7204981bd4f3ee8d83806688af7c04fe97b3c74c..b40f054ac0b25ddf28e66b856d5f4b78ea442f8b 100644 (file)
@@ -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);
                }
 }