r2357 - trunk/data/qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Fri Apr 20 06:17:54 EDT 2007


Author: div0
Date: 2007-04-20 06:17:54 -0400 (Fri, 20 Apr 2007)
New Revision: 2357

Modified:
   trunk/data/qcsrc/server/bots.qc
Log:
need the first down-trace to not shift waypoints slightly around when loading/saving


Modified: trunk/data/qcsrc/server/bots.qc
===================================================================
--- trunk/data/qcsrc/server/bots.qc	2007-04-20 10:12:58 UTC (rev 2356)
+++ trunk/data/qcsrc/server/bots.qc	2007-04-20 10:17:54 UTC (rev 2357)
@@ -590,26 +590,31 @@
 
 	if(!(f & WAYPOINTFLAG_GENERATED))
 	{
-		org = w.origin + '2 2 2';
+		org = w.origin + '0 0 2';
 		tracebox(org, w.mins, w.maxs, w.origin, MOVE_WORLDONLY, w);
 		if(trace_startsolid)
 		{
-			org = w.origin + '-2 -2 2';
+			org = w.origin + '2 2 2';
 			tracebox(org, w.mins, w.maxs, w.origin, MOVE_WORLDONLY, w);
 			if(trace_startsolid)
 			{
-				org = w.origin + '-2 2 2';
+				org = w.origin + '-2 -2 2';
 				tracebox(org, w.mins, w.maxs, w.origin, MOVE_WORLDONLY, w);
 				if(trace_startsolid)
 				{
-					org = w.origin + '2 -2 2';
+					org = w.origin + '-2 2 2';
 					tracebox(org, w.mins, w.maxs, w.origin, MOVE_WORLDONLY, w);
 					if(trace_startsolid)
 					{
-						// this WP is in solid, refuse it
-						dprint("Killed a waypoint that was stuck in solid at ", vtos(org), "\n");
-						remove(w);
-						return world;
+						org = w.origin + '2 -2 2';
+						tracebox(org, w.mins, w.maxs, w.origin, MOVE_WORLDONLY, w);
+						if(trace_startsolid)
+						{
+							// this WP is in solid, refuse it
+							dprint("Killed a waypoint that was stuck in solid at ", vtos(org), "\n");
+							remove(w);
+							return world;
+						}
 					}
 				}
 			}




More information about the nexuiz-commits mailing list