restore some code unintentionally removed

Checked with @KimLS.
This commit is contained in:
Paul Coene 2020-02-24 16:51:05 -05:00 committed by GitHub
parent 8787f51b58
commit 08002eacea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -179,6 +179,10 @@ IPathfinder::IPath PathfinderNavmesh::FindPath(const glm::vec3 &start, const glm
if (path[npoly - 1] != end_ref) {
m_impl->query->closestPointOnPoly(path[npoly - 1], &dest_location[0], &epos[0], 0);
partial = true;
auto dist = DistanceSquared(epos, current_location);
if (dist < 10000.0f) {
stuck = true;
}
int n_straight_polys;