mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-15 12:31:31 +00:00
restore some code unintentionally removed
Checked with @KimLS.
This commit is contained in:
parent
8787f51b58
commit
08002eacea
@ -179,6 +179,10 @@ IPathfinder::IPath PathfinderNavmesh::FindPath(const glm::vec3 &start, const glm
|
|||||||
if (path[npoly - 1] != end_ref) {
|
if (path[npoly - 1] != end_ref) {
|
||||||
m_impl->query->closestPointOnPoly(path[npoly - 1], &dest_location[0], &epos[0], 0);
|
m_impl->query->closestPointOnPoly(path[npoly - 1], &dest_location[0], &epos[0], 0);
|
||||||
partial = true;
|
partial = true;
|
||||||
|
|
||||||
|
auto dist = DistanceSquared(epos, current_location);
|
||||||
|
if (dist < 10000.0f) {
|
||||||
|
stuck = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
int n_straight_polys;
|
int n_straight_polys;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user