Change map loading paths - maps/base/*.map - maps/water/*.wtr - maps/nav/*.nav

This commit is contained in:
Akkadius
2018-05-10 04:19:43 -05:00
parent 95043d637c
commit d504397593
4 changed files with 16 additions and 8 deletions
+1 -1
View File
@@ -9,7 +9,7 @@
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);
std::string navmesh_path = fmt::format("maps/nav/{0}.nav", zone);
if (stat(navmesh_path.c_str(), &statbuffer) == 0) {
return new PathfinderNavmesh(navmesh_path);
}