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

Close #25652
This commit is contained in:
Giacomo Pozzoni
2020-12-28 12:36:52 +01:00
committed by GitHub
parent a843d8b10c
commit aabd2b49e2

View File

@@ -2305,7 +2305,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));