r3588 - trunk/data/qcsrc/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Sun Apr 13 10:49:07 EDT 2008
Author: div0
Date: 2008-04-13 10:49:06 -0400 (Sun, 13 Apr 2008)
New Revision: 3588
Modified:
trunk/data/qcsrc/server/w_common.qc
Log:
support antilag_debug in g_antilag 2 too
Modified: trunk/data/qcsrc/server/w_common.qc
===================================================================
--- trunk/data/qcsrc/server/w_common.qc 2008-04-11 22:19:21 UTC (rev 3587)
+++ trunk/data/qcsrc/server/w_common.qc 2008-04-13 14:49:06 UTC (rev 3588)
@@ -39,7 +39,10 @@
// note down which entities were hit so we can damage them later
while (1)
{
- traceline_antilag (self, start, end, FALSE, self, self.ping * 0.001);
+ if(self.antilag_debug)
+ traceline_antilag (self, start, end, FALSE, self, self.antilag_debug);
+ else
+ traceline_antilag (self, start, end, FALSE, self, self.ping * 0.001);
// if it is world we can't hurt it so stop now
if (trace_ent == world || trace_fraction == 1)
@@ -107,7 +110,10 @@
dir = dir + randomvec() * spread;
end = start + dir * MAX_SHOT_DISTANCE;
- traceline_antilag (self, start, end, FALSE, self, self.ping * 0.001);
+ if(self.antilag_debug)
+ traceline_antilag (self, start, end, FALSE, self, self.antilag_debug);
+ else
+ traceline_antilag (self, start, end, FALSE, self, self.ping * 0.001);
if (tracer)
{
More information about the nexuiz-commits
mailing list