Allow tile height to also play a part in determining the density of rocky patches.

This commit is contained in:
reldred
2021-03-28 14:26:17 +10:30
parent 4a169f07ab
commit 86e7cb6d18
5 changed files with 19 additions and 2 deletions

View File

@@ -365,9 +365,9 @@ void GenerateClearTile()
IncreaseGeneratingWorldProgress(GWP_ROUGH_ROCKY);
if (IsTileType(tile, MP_CLEAR) && !IsClearGround(tile, CLEAR_DESERT)) {
uint j = GB(r, 16, 4) + _settings_game.game_creation.amount_of_rocks;
uint j = GB(r, 16, 4) + _settings_game.game_creation.amount_of_rocks + ((int)TileHeight(tile) * _settings_game.game_creation.height_affects_rocks);
for (;;) {
TileIndex tile_new;
TileIndex tile_new;
SetClearGroundDensity(tile, CLEAR_ROCKS, 3);
do {