1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-29 09:32:45 +00:00

Revert "Merge branch 'movement_fix2' into 'master'"

This reverts merge request !496
This commit is contained in:
elsid 2021-01-28 12:48:19 +00:00
parent b164f1aa17
commit a3ab8dfbb4

View File

@ -309,7 +309,7 @@ namespace MWMechanics
if (mPath.size() > 1 && isAlmostStraight(position, mPath[0], mPath[1], pointTolerance))
mPath.pop_front();
if (mPath.size() == 1 && (mPath.front() - position).length2() < destinationTolerance * destinationTolerance)
if (mPath.size() == 1 && sqrDistanceIgnoreZ(mPath.front(), position) < destinationTolerance * destinationTolerance)
mPath.pop_front();
}