src/clear_cmd.cpp
changeset 10438 51bff16a04c9
parent 10207 c291a21b304e
child 10439 50f056aa3024
equal deleted inserted replaced
10437:6d64230b9fb9 10438:51bff16a04c9
   282 	SetGeneratingWorldProgress(GWP_ROUGH_ROCKY, gi + i);
   282 	SetGeneratingWorldProgress(GWP_ROUGH_ROCKY, gi + i);
   283 	do {
   283 	do {
   284 		IncreaseGeneratingWorldProgress(GWP_ROUGH_ROCKY);
   284 		IncreaseGeneratingWorldProgress(GWP_ROUGH_ROCKY);
   285 		tile = RandomTile();
   285 		tile = RandomTile();
   286 		if (IsTileType(tile, MP_CLEAR) && !IsClearGround(tile, CLEAR_DESERT)) SetClearGroundDensity(tile, CLEAR_ROUGH, 3);
   286 		if (IsTileType(tile, MP_CLEAR) && !IsClearGround(tile, CLEAR_DESERT)) SetClearGroundDensity(tile, CLEAR_ROUGH, 3);
   287 	} while (--i);
   287 	} while (i && --i);
   288 
   288 
   289 	/* add rocky tiles */
   289 	/* add rocky tiles */
   290 	i = gi;
   290 	i = gi;
   291 	do {
   291 	do {
   292 		uint32 r = Random();
   292 		uint32 r = Random();
   305 				} while (!IsTileType(tile_new, MP_CLEAR) || IsClearGround(tile_new, CLEAR_DESERT));
   305 				} while (!IsTileType(tile_new, MP_CLEAR) || IsClearGround(tile_new, CLEAR_DESERT));
   306 				tile = tile_new;
   306 				tile = tile_new;
   307 			}
   307 			}
   308 get_out:;
   308 get_out:;
   309 		}
   309 		}
   310 	} while (--i);
   310 	} while (i && --i);
   311 }
   311 }
   312 
   312 
   313 static void ClickTile_Clear(TileIndex tile)
   313 static void ClickTile_Clear(TileIndex tile)
   314 {
   314 {
   315 	/* not used */
   315 	/* not used */