r3457 - trunk/data/qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sat Mar 1 03:44:12 EST 2008


Author: div0
Date: 2008-03-01 03:44:03 -0500 (Sat, 01 Mar 2008)
New Revision: 3457

Modified:
   trunk/data/qcsrc/server/havocbot_roles.qc
Log:
while -> for to fix KH bug


Modified: trunk/data/qcsrc/server/havocbot_roles.qc
===================================================================
--- trunk/data/qcsrc/server/havocbot_roles.qc	2008-03-01 08:31:45 UTC (rev 3456)
+++ trunk/data/qcsrc/server/havocbot_roles.qc	2008-03-01 08:44:03 UTC (rev 3457)
@@ -550,8 +550,7 @@
 void(float ratingscale_team, float ratingscale_dropped, float ratingscale_enemy) havocbot_goalrating_kh =
 {
 	local entity head;
-	head = kh_keylist;
-	while (head)
+	for (head = kh_keylist; head; head = head.enemy)
 	{
 		if(head.owner == self)
 			continue;
@@ -564,7 +563,6 @@
 			navigation_routerating(head, ratingscale_team, 10000);
 		else
 			navigation_routerating(head, ratingscale_enemy, 10000);
-		head = head.enemy;
 	}
 };
 




More information about the nexuiz-commits mailing list