mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-24 09:47:20 +00:00
Some changes to navmesh path finding, disabled waypoint nav interface for now, might keep it disabled (i don't think anyones using it anyway) added a rule that might need some fine tuning for navmesh pathfinding
This commit is contained in:
1 parent
d3aa74ff54
commit
e96539e6a8
10 files changed
+307
-27
No files matched your search
@@ -8,15 +8,10 @@
|
||||
|
||||
IPathfinder *IPathfinder::Load(const std::string &zone) {
|
||||
struct stat statbuffer;
|
||||
std::string waypoint_path = fmt::format("maps/path/{0}.path", zone);
|
||||
std::string navmesh_path = fmt::format("maps/nav/{0}.nav", zone);
|
||||
if (stat(navmesh_path.c_str(), &statbuffer) == 0) {
|
||||
return new PathfinderNavmesh(navmesh_path);
|
||||
}
|
||||
|
||||
if (stat(waypoint_path.c_str(), &statbuffer) == 0) {
|
||||
return new PathfinderWaypoint(waypoint_path);
|
||||
}
|
||||
|
||||
return new PathfinderNull();
|
||||
}
|
||||
Reference in new issue
Block a user