[nexuiz-commits] r6634 - trunk/data/qcsrc/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Fri May 1 17:27:23 EDT 2009
Author: mand1nga
Date: 2009-05-01 17:27:23 -0400 (Fri, 01 May 2009)
New Revision: 6634
Modified:
trunk/data/qcsrc/server/bots.qc
Log:
Fix in the navigation_hasgoals field handling
Modified: trunk/data/qcsrc/server/bots.qc
===================================================================
--- trunk/data/qcsrc/server/bots.qc 2009-05-01 21:00:40 UTC (rev 6633)
+++ trunk/data/qcsrc/server/bots.qc 2009-05-01 21:27:23 UTC (rev 6634)
@@ -1183,6 +1183,7 @@
// completely empty the goal stack, used when deciding where to go
void navigation_clearroute()
{
+ self.navigation_hasgoals = FALSE;
self.goalcurrent = world;
self.goalstack01 = world;
self.goalstack02 = world;
@@ -1620,6 +1621,8 @@
if (!e)
return FALSE;
+ self.navigation_hasgoals = TRUE;
+
// put the entity on the goal stack
navigation_pushroute(e);
@@ -1717,7 +1720,7 @@
void navigation_goalrating_start()
{
navigation_bestrating = -1;
- self.navigation_hasgoals = TRUE;
+ self.navigation_hasgoals = FALSE;
navigation_bestgoals_reset();
navigation_markroutes();
};
More information about the nexuiz-commits
mailing list