mirror of
https://github.com/EQEmu/Server.git
synced 2026-09-01 11:36:36 +00:00
Bug fixes with fear points and teleport jumps
This commit is contained in:
@@ -187,6 +187,13 @@ IPathfinder::IPath PathfinderWaypoint::FindRoute(const glm::vec3 &start, const g
|
||||
|
||||
glm::vec3 PathfinderWaypoint::GetRandomLocation()
|
||||
{
|
||||
if (m_impl->Nodes.size() > 0) {
|
||||
auto idx = zone->random.Int(0, (int)m_impl->Nodes.size() - 1);
|
||||
auto &node = m_impl->Nodes[idx];
|
||||
|
||||
return node.v;
|
||||
}
|
||||
|
||||
return glm::vec3();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user