From 8b409b92b69ca87a86f1f9b7bb41c76220084f5b Mon Sep 17 00:00:00 2001 From: mand1nga Date: Wed, 20 Apr 2011 04:59:55 -0300 Subject: [PATCH] Honor autocvar_bot_wander_enable --- qcsrc/server/bot/navigation.qc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/qcsrc/server/bot/navigation.qc b/qcsrc/server/bot/navigation.qc index e39c5408d..4b99d604c 100644 --- a/qcsrc/server/bot/navigation.qc +++ b/qcsrc/server/bot/navigation.qc @@ -963,6 +963,9 @@ void botframe_updatedangerousobjects(float maxupdate) void navigation_unstuck() { + if not(autocvar_bot_wander_enable) + return; + if not(navigation_wander_owner) { dprint(self.netname, " taking over the waypoints queue\n"); @@ -978,7 +981,7 @@ void navigation_unstuck() { // evaluate the next goal on the queue float d = vlen(self.origin - navigation_wander_goal.origin); - dprint(self.netname, " evaluating ", navigation_wander_goal.classname, " with distance ", ftos(d), "\n"); + // dprint(self.netname, " evaluating ", navigation_wander_goal.classname, " with distance ", ftos(d), "\n"); if(tracewalk(navigation_wander_goal, self.origin, PL_MIN, PL_MAX, navigation_wander_goal.origin, bot_navigation_movemode)) { if( d > navigation_wander_bestgoalrating) -- 2.39.2