]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add extra check for reached goals when running
authormand1nga <mand1nga@xonotic.org>
Fri, 19 Aug 2011 01:46:47 +0000 (22:46 -0300)
committermand1nga <mand1nga@xonotic.org>
Fri, 19 Aug 2011 01:46:47 +0000 (22:46 -0300)
qcsrc/server/bot/navigation.qc

index 87ff3d53231aee92c6cc5660f04803467c1a1f82..2c80aca61bc7804540d53c5d0a3a82c8c4dab1cd 100644 (file)
@@ -914,6 +914,7 @@ void navigation_poptouchedgoals()
 
        // Loose goal touching check when running
        if(self.aistatus & AI_STATUS_RUNNING)
+       if(self.speed >= autocvar_sv_maxspeed) // if -really- running
        if(self.goalcurrent.classname=="waypoint")
        {
                if(vlen(self.origin - self.goalcurrent.origin)<150)