From: mand1nga Date: Wed, 20 Apr 2011 07:59:55 +0000 (-0300) Subject: Honor autocvar_bot_wander_enable X-Git-Tag: xonotic-v0.5.0~264^2~28^2~1^2~7 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=8b409b92b69ca87a86f1f9b7bb41c76220084f5b;p=xonotic%2Fxonotic-data.pk3dir.git Honor autocvar_bot_wander_enable --- 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)