From: Rudolf Polzer Date: Mon, 22 Aug 2011 13:08:14 +0000 (+0200) Subject: fix a division by zero - NOTE: PLEASE RETEST WARPZONES WITH SLOW PROJECTILES AGAIN X-Git-Tag: xonotic-v0.5.0~89 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b9a39cc4c286b9ddd98222411753ee05a7c73d00;p=xonotic%2Fxonotic-data.pk3dir.git fix a division by zero - NOTE: PLEASE RETEST WARPZONES WITH SLOW PROJECTILES AGAIN --- diff --git a/qcsrc/warpzonelib/server.qc b/qcsrc/warpzonelib/server.qc index 29a378dc6..ac4a603fe 100644 --- a/qcsrc/warpzonelib/server.qc +++ b/qcsrc/warpzonelib/server.qc @@ -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))