Core/Maps: Attempt to fix picking the wrong min height (#25771)

Close #25652

(cherry picked from commit aabd2b49e2)
This commit is contained in:
Giacomo Pozzoni
2020-12-28 12:36:52 +01:00
committed by Shauren
parent 90a05037cf
commit 30ebecc0de

View File

@@ -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));