Fix typo in last commit.
Places structures more gently, structures should no longer form craters in the ground when being placed down.master
parent
2ee63abdc6
commit
e8b8abf4cb
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue