Skip to content

Commit 3323181

Browse files
committed
build: restore missing getGroundHeight arguments in GeneralsMD TerrainLogic
1 parent 668cb0c commit 3323181

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2708,9 +2708,9 @@ void TerrainLogic::flattenTerrain(Object *obj)
27082708
Real avgHeight = totalHeight/numSamples;
27092709
Int rawDataHeight = REAL_TO_INT_FLOOR(0.5f + avgHeight/MAP_HEIGHT_SCALE);
27102710

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);
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(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)