diff options
| author | Shauren <shauren.trinity@gmail.com> | 2015-05-09 00:10:56 +0200 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2015-05-09 00:10:56 +0200 |
| commit | 7e801595f42be692fcbd8cbfd3cf6652c75e5db6 (patch) | |
| tree | 4e42a9a43f50f476910d0e0f0891959a0d062c4d /src/server/game | |
| parent | 347e954086c71d6286f08a5467de8a41457684ad (diff) | |
Core/Maps: Restored DataDir functionality accidendally removed earlier
Diffstat (limited to 'src/server/game')
| -rw-r--r-- | src/server/game/Maps/Map.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/Maps/Map.cpp b/src/server/game/Maps/Map.cpp index d65682dc6ce..7398da99a06 100644 --- a/src/server/game/Maps/Map.cpp +++ b/src/server/game/Maps/Map.cpp @@ -78,7 +78,7 @@ Map::~Map() bool Map::ExistMap(uint32 mapid, int gx, int gy) { - std::string fileName = Trinity::StringFormat("maps/%04u_%02u_%02u.map", mapid, gx, gy); + std::string fileName = Trinity::StringFormat("%smaps/%04u_%02u_%02u.map", sWorld->GetDataPath().c_str(), mapid, gx, gy); bool ret = false; FILE* file = fopen(fileName.c_str(), "rb"); @@ -187,7 +187,7 @@ void Map::LoadMap(int gx, int gy, bool reload) } // map file name - std::string fileName = Trinity::StringFormat("maps/%04u_%02u_%02u.map", GetId(), gx, gy); + std::string fileName = Trinity::StringFormat("%smaps/%04u_%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(); |
