]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/warpzonelib/server.qc
fix a division by zero - NOTE: PLEASE RETEST WARPZONES WITH SLOW PROJECTILES AGAIN
[xonotic/xonotic-data.pk3dir.git] / 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))