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:
1 parent
d3a26802dc
commit
911f8636c9
7 files changed
+46
-13
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user