File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
GeneralsMD/Code/GameEngine/Source/GameLogic/Map Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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++) {
You can’t perform that action at this time.
0 commit comments