]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
fix damage bounding in crylink
authorRudolf Polzer <divverent@alientrap.org>
Sat, 12 Feb 2011 13:03:07 +0000 (14:03 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Sat, 12 Feb 2011 13:03:07 +0000 (14:03 +0100)
qcsrc/server/w_crylink.qc

index 2578b62609b820014933f20bb3e542c38c8b0cec..93a110dad8d2e44273c06ef6318e74021e528167 100644 (file)
@@ -282,7 +282,7 @@ void W_Crylink_Touch2 (void)
        }
 
        float a;
-       a = 1 - (time - self.fade_time) * self.fade_rate;
+       a = bound(0, 1 - (time - self.fade_time) * self.fade_rate, 1);
 
        finalhit = ((self.cnt <= 0) || (other.takedamage != DAMAGE_NO));
        if(finalhit)