r5519 - trunk/data/qcsrc/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Wed Jan 14 07:20:33 EST 2009
Author: div0
Date: 2009-01-14 07:20:33 -0500 (Wed, 14 Jan 2009)
New Revision: 5519
Modified:
trunk/data/qcsrc/server/g_subs.qc
trunk/data/qcsrc/server/gamecommand.qc
Log:
fixed important code I killed while trying to kill just debug stuff
Modified: trunk/data/qcsrc/server/g_subs.qc
===================================================================
--- trunk/data/qcsrc/server/g_subs.qc 2009-01-14 12:18:12 UTC (rev 5518)
+++ trunk/data/qcsrc/server/g_subs.qc 2009-01-14 12:20:33 UTC (rev 5519)
@@ -318,13 +318,13 @@
tracebox(pos, mi, ma, v2, nomonsters, forent);
++c;
- if(c >= 50)
+ if(c == 50)
{
// wtf
- print("When tracing from ", vtos(v1), " to ", vtos(v2), "\n");
- print("Nudging gets us nowhere at ", vtos(pos), "\n");
- print("trace_endpos is ", vtos(trace_endpos), "\n");
- print("trace distance is ", ftos(vlen(pos - trace_endpos)), "\n");
+ print("HOLY SHIT! When tracing from ", vtos(v1), " to ", vtos(v2), "\n");
+ print(" Nudging gets us nowhere at ", vtos(pos), "\n");
+ print(" trace_endpos is ", vtos(trace_endpos), "\n");
+ print(" trace distance is ", ftos(vlen(pos - trace_endpos)), "\n");
}
if(trace_startsolid)
Modified: trunk/data/qcsrc/server/gamecommand.qc
===================================================================
--- trunk/data/qcsrc/server/gamecommand.qc 2009-01-14 12:18:12 UTC (rev 5518)
+++ trunk/data/qcsrc/server/gamecommand.qc 2009-01-14 12:20:33 UTC (rev 5519)
@@ -10,8 +10,8 @@
c = a;
- //float n, m;
- //n = m = 0;
+ // float n, m;
+ // n = m = 0;
while(vlen(c - b) > 1)
{
@@ -26,7 +26,7 @@
c = trace_endpos;
}
- //n += tracebox_inverted(c, mi, ma, b, MOVE_WORLDONLY, world);
+ /* n += */ tracebox_inverted(c, mi, ma, b, MOVE_WORLDONLY, world);
white += vlen(trace_endpos - c);
c = trace_endpos;
More information about the nexuiz-commits
mailing list