]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
fix a division by zero - NOTE: PLEASE RETEST WARPZONES WITH SLOW PROJECTILES AGAIN
authorRudolf Polzer <divVerent@xonotic.org>
Mon, 22 Aug 2011 13:08:14 +0000 (15:08 +0200)
committerRudolf Polzer <divVerent@xonotic.org>
Mon, 22 Aug 2011 13:08:14 +0000 (15:08 +0200)
qcsrc/warpzonelib/server.qc

index 29a378dc6c27892ce17635dfd1711c260f689f1e..ac4a603fe3e4e9c7810cf8f85cf033bdd15c21ad 100644 (file)
@@ -166,8 +166,8 @@ void WarpZone_Touch (void)
                return;
 
        float f;
-       if(clienttype(self) == CLIENTTYPE_NOTACLIENT)
-               f = min(-1, -64 / vlen(self.velocity));
+       if(clienttype(other) == CLIENTTYPE_NOTACLIENT)
+               f = min(-1, -64 / vlen(other.velocity));
        else
                f = -1;
        if(WarpZone_Teleport(self, other, f, 0))