mirror of
https://github.com/azerothcore/azerothcore-wotlk.git
synced 2025-11-10 20:34:53 +08:00
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
@ -26,7 +26,7 @@
|
|||||||
#define SIZE_OF_GRIDS 533.3333f
|
#define SIZE_OF_GRIDS 533.3333f
|
||||||
|
|
||||||
#define MMAP_MAGIC 0x4d4d4150 // 'MMAP'
|
#define MMAP_MAGIC 0x4d4d4150 // 'MMAP'
|
||||||
#define MMAP_VERSION 17
|
#define MMAP_VERSION 18
|
||||||
|
|
||||||
struct MmapTileRecastConfig
|
struct MmapTileRecastConfig
|
||||||
{
|
{
|
||||||
|
|||||||
@ -25,7 +25,7 @@ namespace MMAP
|
|||||||
{
|
{
|
||||||
float ComputeBaseUnitDim(int vertexPerMapEdge)
|
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)
|
std::pair<uint32, uint32> MakeTileKey(uint32 x, uint32 y)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user