Skip to content

Commit 35544f7

Browse files
committed
fix: restore missing arguments to getGroundHeight call
1 parent f29def9 commit 35544f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Generals/Code/GameEngine/Source/GameLogic/Map/TerrainLogic.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2710,7 +2710,7 @@ void TerrainLogic::flattenTerrain(Object *obj)
27102710

27112711
// Compare to the height at the building's origin, because setRawMapHeight will only lower,
27122712
// not raise. jba
2713-
Int centerHeight = REAL_TO_INT_FLOOR(getGroundHeight()/MAP_HEIGHT_SCALE);
2713+
Int centerHeight = REAL_TO_INT_FLOOR(getGroundHeight(pos->x, pos->y)/MAP_HEIGHT_SCALE);
27142714
if (rawDataHeight>centerHeight) rawDataHeight = centerHeight;
27152715

27162716
for (i=iMin.x; i<=iMax.x; i++) {

0 commit comments

Comments
 (0)