File diff r25450:7e9533370994 → r25451:917146b539af
src/terraform_gui.cpp
Show inline comments
 
@@ -57,7 +57,7 @@ static void GenerateDesertArea(TileIndex
 
	_generating_world = true;
 

	
 
	TileArea ta(start, end);
 
	TILE_AREA_LOOP(tile, ta) {
 
	for (TileIndex tile : ta) {
 
		SetTropicZone(tile, (_ctrl_pressed) ? TROPICZONE_NORMAL : TROPICZONE_DESERT);
 
		DoCommandP(tile, 0, 0, CMD_LANDSCAPE_CLEAR);
 
		MarkTileDirtyByTile(tile);
 
@@ -74,7 +74,7 @@ static void GenerateRockyArea(TileIndex 
 
	bool success = false;
 
	TileArea ta(start, end);
 

	
 
	TILE_AREA_LOOP(tile, ta) {
 
	for (TileIndex tile : ta) {
 
		switch (GetTileType(tile)) {
 
			case MP_TREES:
 
				if (GetTreeGround(tile) == TREE_GROUND_SHORE) continue;
 
@@ -408,18 +408,18 @@ static void CommonRaiseLowerBigLand(Tile
 
		if (mode != 0) {
 
			/* Raise land */
 
			h = MAX_TILE_HEIGHT;
 
			TILE_AREA_LOOP(tile2, ta) {
 
			for (TileIndex tile2 : ta) {
 
				h = std::min(h, TileHeight(tile2));
 
			}
 
		} else {
 
			/* Lower land */
 
			h = 0;
 
			TILE_AREA_LOOP(tile2, ta) {
 
			for (TileIndex tile2 : ta) {
 
				h = std::max(h, TileHeight(tile2));
 
			}
 
		}
 

	
 
		TILE_AREA_LOOP(tile2, ta) {
 
		for (TileIndex tile2 : ta) {
 
			if (TileHeight(tile2) == h) {
 
				DoCommandP(tile2, SLOPE_N, (uint32)mode, CMD_TERRAFORM_LAND);
 
			}