From c52db755459657f2b5cb5a293d26f5aca7cd951f Mon Sep 17 00:00:00 2001 From: elsid Date: Fri, 2 Nov 2018 01:03:17 +0300 Subject: [PATCH] Use default tolerance to drop last point from path Fixes AiEscort. Before actor tried to reach target with 0 tolerance. Back to logic like it was before 4fe764c3a53 and bbd82a743 commits. --- apps/openmw/mwmechanics/aipackage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/openmw/mwmechanics/aipackage.cpp b/apps/openmw/mwmechanics/aipackage.cpp index a61b2fa37c..f018f6ce26 100644 --- a/apps/openmw/mwmechanics/aipackage.cpp +++ b/apps/openmw/mwmechanics/aipackage.cpp @@ -173,7 +173,7 @@ bool MWMechanics::AiPackage::pathTo(const MWWorld::Ptr& actor, const osg::Vec3f& const auto pointTolerance = std::min(actor.getClass().getSpeed(actor), DEFAULT_TOLERANCE); - mPathFinder.update(position, pointTolerance, destTolerance); + mPathFinder.update(position, pointTolerance, DEFAULT_TOLERANCE); if (isDestReached || mPathFinder.checkPathCompleted()) // if path is finished {