mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 07:18:37 +00:00
Update fmt lib, add recast, wip on recast pathfinder interface (broken atm)
This commit is contained in:
@@ -10,13 +10,13 @@ IPathfinder *IPathfinder::Load(const std::string &zone) {
|
||||
struct stat statbuffer;
|
||||
std::string waypoint_path = fmt::format("maps/{0}.path", zone);
|
||||
std::string navmesh_path = fmt::format("maps/{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);
|
||||
}
|
||||
|
||||
//if (stat(waypoint_path.c_str(), &statbuffer) == 0) {
|
||||
// return new PathfinderNavmesh(navmesh_path);
|
||||
//}
|
||||
|
||||
return new PathfinderNull();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user