diff options
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/Collision/Management/VMapManager2.cpp | 2 | ||||
-rw-r--r-- | src/common/Collision/Maps/MapTree.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/common/Collision/Management/VMapManager2.cpp b/src/common/Collision/Management/VMapManager2.cpp index 02d618836ec..21f73e2e7c8 100644 --- a/src/common/Collision/Management/VMapManager2.cpp +++ b/src/common/Collision/Management/VMapManager2.cpp @@ -101,7 +101,7 @@ namespace VMAP // move to MapTree too? std::string VMapManager2::getMapFileName(unsigned int mapId) { - return Trinity::StringFormat("{:04}.vmtree", mapId); + return Trinity::StringFormat("{:04}/{:04}.vmtree", mapId, mapId); } LoadResult VMapManager2::loadMap(char const* basePath, unsigned int mapId, int x, int y) diff --git a/src/common/Collision/Maps/MapTree.cpp b/src/common/Collision/Maps/MapTree.cpp index 8a9cf44e9d1..b168134486f 100644 --- a/src/common/Collision/Maps/MapTree.cpp +++ b/src/common/Collision/Maps/MapTree.cpp @@ -71,7 +71,7 @@ namespace VMAP std::string getTileFileName(uint32 mapID, uint32 tileX, uint32 tileY, std::string_view extension) { - return Trinity::StringFormat("{:04}_{:02}_{:02}.{}", mapID, tileY, tileX, extension); + return Trinity::StringFormat("{:04}/{:04}_{:02}_{:02}.{}", mapID, mapID, tileY, tileX, extension); } bool StaticMapTree::GetLocationInfo(Vector3 const& pos, LocationInfo& info) const |