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:
parent
7d2b86d7be
commit
422ccc8e44
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue