Fix typo in last commit.

Places structures more gently, structures should no longer form craters in the ground when being placed down.
master
Cyp 2010-12-26 16:17:03 +01:00
parent 2ee63abdc6
commit e8b8abf4cb
1 changed files with 2 additions and 2 deletions

View File

@ -1565,9 +1565,9 @@ static int foundationHeight(STRUCTURE *psStruct)
int foundationMin = TILE_MAX_HEIGHT; int foundationMin = TILE_MAX_HEIGHT;
int foundationMax = TILE_MIN_HEIGHT; int foundationMax = TILE_MIN_HEIGHT;
for (int breadth = 0; breadth <= map.y; breadth++) for (int breadth = 0; breadth <= size.y; breadth++)
{ {
for (int width = 0; width <= map.x; width++) for (int width = 0; width <= size.x; width++)
{ {
int height = map_TileHeight(map.x + width, map.y + breadth); int height = map_TileHeight(map.x + width, map.y + breadth);
foundationMin = std::min(foundationMin, height); foundationMin = std::min(foundationMin, height);