]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Honor autocvar_bot_wander_enable
authormand1nga <mand1nga@xonotic.org>
Wed, 20 Apr 2011 07:59:55 +0000 (04:59 -0300)
committermand1nga <mand1nga@xonotic.org>
Wed, 20 Apr 2011 07:59:55 +0000 (04:59 -0300)
qcsrc/server/bot/navigation.qc

index e39c5408d1fed2ebf54080bc94c6a56f3a32fe9c..4b99d604c31e87ca8059197faac6ec64d2c403cb 100644 (file)
@@ -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)