We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f29def9 commit 35544f7Copy full SHA for 35544f7
Generals/Code/GameEngine/Source/GameLogic/Map/TerrainLogic.cpp
@@ -2710,7 +2710,7 @@ void TerrainLogic::flattenTerrain(Object *obj)
2710
2711
// Compare to the height at the building's origin, because setRawMapHeight will only lower,
2712
// not raise. jba
2713
- Int centerHeight = REAL_TO_INT_FLOOR(getGroundHeight()/MAP_HEIGHT_SCALE);
+ Int centerHeight = REAL_TO_INT_FLOOR(getGroundHeight(pos->x, pos->y)/MAP_HEIGHT_SCALE);
2714
if (rawDataHeight>centerHeight) rawDataHeight = centerHeight;
2715
2716
for (i=iMin.x; i<=iMax.x; i++) {
0 commit comments