Core/Maps: Restored DataDir functionality accidendally removed earlier
(cherry picked from commit 7e801595f42be692fcbd8cbfd3cf6652c75e5db6)
This commit is contained in:
1 parent
afb8c16989
commit
b605f1cc81
1 file changed
+1
-1
@@ -180,7 +180,7 @@ void Map::LoadMap(int gx, int gy, bool reload)
|
||||
}
|
||||
|
||||
// map file name
|
||||
std::string fileName = Trinity::StringFormat("maps/%03u%02u%02u.map", GetId(), gx, gy);
|
||||
std::string fileName = Trinity::StringFormat("%smaps/%03u%02u%02u.map", sWorld->GetDataPath().c_str(), GetId(), gx, gy);
|
||||
TC_LOG_DEBUG("maps", "Loading map %s", fileName.c_str());
|
||||
// loading data
|
||||
GridMaps[gx][gy] = new GridMap();
|
||||
|
||||
Reference in new issue
Block a user