]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
fixes :)
authorRudolf Polzer <divverent@alientrap.org>
Sat, 25 Sep 2010 19:33:39 +0000 (21:33 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Sat, 25 Sep 2010 19:33:39 +0000 (21:33 +0200)
qcsrc/warpzonelib/client.qc

index 164294044fadb50d9f4c845c27c3c40838c34c09..725f84ffbd24a8f09150431c7aa44e1c2f2860d2 100644 (file)
@@ -1,9 +1,10 @@
 void WarpZone_Fade_PreDraw()
 {
        if(self.warpzone_fadestart)
-               self.alpha = (self.warpzone_fadeend - vlen(view_origin - self.origin - 0.5 * (self.mins + self.maxs))) / (self.warpzone_fadeend - self.warpzone_fadestart);
+               self.alpha = bound(0, (self.warpzone_fadeend - vlen(view_origin - self.origin - 0.5 * (self.mins + self.maxs))) / (self.warpzone_fadeend - self.warpzone_fadestart), 1);
        else
                self.alpha = 1;
+       //print(sprintf("%v <-> %v\n", view_origin, self.origin + 0.5 * (self.mins + self.maxs)));
        if(self.alpha <= 0)
                self.drawmask = 0;
        else