File diff r23287:0e81c2168d96 → r23288:b17c876b87ca
src/tgp.cpp
Show inline comments
 
@@ -995,8 +995,8 @@ void GenerateTerrainPerlin()
 

	
 
	/* First make sure the tiles at the north border are void tiles if needed. */
 
	if (_settings_game.construction.freeform_edges) {
 
		for (int y = 0; y < _height_map.size_y - 1; y++) MakeVoid(_height_map.size_x * y);
 
		for (int x = 0; x < _height_map.size_x;     x++) MakeVoid(x);
 
		for (uint x = 0; x < MapSizeX(); x++) MakeVoid(TileXY(x, 0));
 
		for (uint y = 0; y < MapSizeY(); y++) MakeVoid(TileXY(0, y));
 
	}
 

	
 
	int max_height = H2I(TGPGetMaxHeight());