mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-26 19:52:17 +00:00
Pathing underwater works a lot better now.
This commit is contained in:
1 parent
a6a06de994
commit
978650eb1f
5 files changed
+86
-24
No files matched your search
@@ -309,6 +309,10 @@ PathfindingRoute::~PathfindingRoute()
|
||||
|
||||
bool PathfindingRoute::DestinationValid(const glm::vec3 &dest)
|
||||
{
|
||||
if (m_current_node >= 255) {
|
||||
return false;
|
||||
}
|
||||
|
||||
auto dist = vec_dist(dest, m_dest);
|
||||
if (dist <= max_dest_drift) {
|
||||
return true;
|
||||
|
||||
Reference in new issue
Block a user