Core/Objects: fixed remaining differences for collision height code and fixed an issue that was causing units getting summoned in the air

This commit is contained in:
Ovahlord committed 2019-02-19 17:56:35 +01:00
1 parent d3a26802dc
commit 911f8636c9
7 files changed
+46 -13

No files matched your search

+1 -1
View File
@@ -2456,7 +2456,7 @@ float Map::GetStaticHeight(PhaseShift const& phaseShift, float x, float y, float
if (GridMap* gmap = m_parentTerrainMap->GetGrid(terrainMapId, x, y))
{
float gridHeight = gmap->getHeight(x, y);
if (z > gridHeight)
if (G3D::fuzzyGe(z, gridHeight - GROUND_HEIGHT_TOLERANCE))
mapHeight = gridHeight;
}