mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Maps: Attempt to fix picking the wrong min height (#25771)
Close #25652
(cherry picked from commit aabd2b49e2)
This commit is contained in:
@@ -2393,7 +2393,7 @@ float GridMap::getMinHeight(float x, float y) const
|
||||
if (!_minHeightPlanes)
|
||||
return -500.0f;
|
||||
|
||||
GridCoord gridCoord = Trinity::ComputeGridCoord(x, y);
|
||||
GridCoord gridCoord = Trinity::ComputeGridCoordSimple(x, y);
|
||||
|
||||
int32 doubleGridX = int32(std::floor(-(x - MAP_HALFSIZE) / CENTER_GRID_OFFSET));
|
||||
int32 doubleGridY = int32(std::floor(-(y - MAP_HALFSIZE) / CENTER_GRID_OFFSET));
|
||||
|
||||
Reference in New Issue
Block a user