mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-01 03:45:32 +00:00
Merge pull request #2009 from elsid/pathfinder_update_tolerance
Use default tolerance to drop last point from path
This commit is contained in:
commit
5f5773f7df
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
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
|
if (isDestReached || mPathFinder.checkPathCompleted()) // if path is finished
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue