mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-15 16:41:29 +00:00
Change distance to within 100.0 dist instead of within 1.0 dist for checking stuck code. The actual instances where you're within 100.0 with a partial path and legit not stuck is going to be uncommon enough to put up with the visual oddities
This commit is contained in:
parent
a53f65d86b
commit
dde3f603be
@ -84,7 +84,7 @@ IPathfinder::IPath PathfinderNavmesh::FindRoute(const glm::vec3 &start, const gl
|
|||||||
partial = true;
|
partial = true;
|
||||||
|
|
||||||
auto dist = DistanceSquared(epos, current_location);
|
auto dist = DistanceSquared(epos, current_location);
|
||||||
if (dist < 10.0f) {
|
if (dist < 10000.0f) {
|
||||||
stuck = true;
|
stuck = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user