From d2a28d915a31bec236abaf6207b8199bb8d3ca88 Mon Sep 17 00:00:00 2001 From: Evil Eye Date: Fri, 25 Dec 2020 15:58:11 +0100 Subject: [PATCH] Don't consider a path completed unless we're close --- 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 4bffd28ba..8880820dd 100644 --- a/apps/openmw/mwmechanics/aipackage.cpp +++ b/apps/openmw/mwmechanics/aipackage.cpp @@ -158,7 +158,7 @@ bool MWMechanics::AiPackage::pathTo(const MWWorld::Ptr& actor, const osg::Vec3f& zTurn(actor, getZAngleToPoint(position, dest)); smoothTurn(actor, getXAngleToPoint(position, dest), 0); world->removeActorPath(actor); - return true; + return isDestReached; } world->updateActorPath(actor, mPathFinder.getPath(), halfExtents, position, dest);