From b9a39cc4c286b9ddd98222411753ee05a7c73d00 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Mon, 22 Aug 2011 15:08:14 +0200 Subject: [PATCH] fix a division by zero - NOTE: PLEASE RETEST WARPZONES WITH SLOW PROJECTILES AGAIN --- qcsrc/warpzonelib/server.qc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)) -- 2.39.2