fix(mmaps): [REQUIRES_REGENERATION] Fix baseUnitDim division to resolve pathing edge cases (#23480)

Co-authored-by: Rocco Silipo <108557877+Rorschach91@users.noreply.github.com>
This commit is contained in:
Anton Popovichenko 2025-11-05 10:27:13 +01:00 committed by GitHub
parent 7d2b86d7be
commit 422ccc8e44
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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
{

View File

@ -25,7 +25,7 @@ namespace MMAP
{
float ComputeBaseUnitDim(int vertexPerMapEdge)
{
return GRID_SIZE / static_cast<float>(vertexPerMapEdge - 1);
return GRID_SIZE / static_cast<float>(vertexPerMapEdge);
}
std::pair<uint32, uint32> MakeTileKey(uint32 x, uint32 y)