1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-16 16:10:58 +00:00

Merge branch 'revert-f917037e' into 'master'

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

See merge request OpenMW/openmw!572
This commit is contained in:
Andrei Kortunov 2021-01-28 12:58:21 +00:00
commit 74fba6df36

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();
}