Core/Maps: Restored DataDir functionality accidendally removed earlier

(cherry picked from commit 7e801595f4)
This commit is contained in:
Shauren
2015-05-09 00:10:56 +02:00
committed by ariel-
parent afb8c16989
commit b605f1cc81

View File

@@ -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();