From: Rudolf Polzer Date: Sun, 1 Jan 2012 15:13:28 +0000 (+0100) Subject: ntilag: fix division by zero after antilag reset X-Git-Tag: xonotic-v0.6.0~189^2~13 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=da6418735b3dbbea426a69dcb129226889227108;p=xonotic%2Fxonotic-data.pk3dir.git ntilag: fix division by zero after antilag reset --- diff --git a/qcsrc/server/antilag.qc b/qcsrc/server/antilag.qc index 3db0540fc..f8454256e 100644 --- a/qcsrc/server/antilag.qc +++ b/qcsrc/server/antilag.qc @@ -119,8 +119,8 @@ void antilag_clear(entity e) antilag_restore(e); for(i = 0; i < ANTILAG_MAX_ORIGINS; ++i) { - e.(antilag_times[i]) = -2342; + e.(antilag_times[i]) = -2342 + i * 0.01; e.(antilag_origins[i]) = self.origin; } - e.antilag_index = 0; + e.antilag_index = ANTILAG_MAX_ORIGINS - 1; // next one is 0 }