diff --git a/src/common/Collision/Maps/MapDefines.h b/src/common/Collision/Maps/MapDefines.h index a40437689..2700878e6 100644 --- a/src/common/Collision/Maps/MapDefines.h +++ b/src/common/Collision/Maps/MapDefines.h @@ -26,7 +26,7 @@ #define SIZE_OF_GRIDS 533.3333f #define MMAP_MAGIC 0x4d4d4150 // 'MMAP' -#define MMAP_VERSION 17 +#define MMAP_VERSION 18 struct MmapTileRecastConfig { diff --git a/src/tools/mmaps_generator/Config.cpp b/src/tools/mmaps_generator/Config.cpp index 3e5ca92dc..f815139d2 100644 --- a/src/tools/mmaps_generator/Config.cpp +++ b/src/tools/mmaps_generator/Config.cpp @@ -25,7 +25,7 @@ namespace MMAP { float ComputeBaseUnitDim(int vertexPerMapEdge) { - return GRID_SIZE / static_cast(vertexPerMapEdge - 1); + return GRID_SIZE / static_cast(vertexPerMapEdge); } std::pair MakeTileKey(uint32 x, uint32 y)