diff options
author | rubidium <rubidium@openttd.org> | 2011-08-20 14:15:40 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-08-20 14:15:40 +0000 |
commit | 11a4e402c60c07b734e74db8e4bf7b18c7267d7a (patch) | |
tree | 8440e2257dd75babf9ec121136ea0eeced53ddfc /src/landscape.cpp | |
parent | 0041408e4fa59b0639bfbd475314421c343a3ce8 (diff) | |
download | openttd-11a4e402c60c07b734e74db8e4bf7b18c7267d7a.tar.xz |
(svn r22768) -Add: progress bar updates for river building
Diffstat (limited to 'src/landscape.cpp')
-rw-r--r-- | src/landscape.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/landscape.cpp b/src/landscape.cpp index 0aec2cc8c..35a00e1d2 100644 --- a/src/landscape.cpp +++ b/src/landscape.cpp @@ -1167,9 +1167,12 @@ static void CreateRivers() int amount = _settings_game.game_creation.amount_of_rivers; if (amount == 0) return; + uint wells = ScaleByMapSize(4 << _settings_game.game_creation.amount_of_rivers); + SetGeneratingWorldProgress(GWP_RIVER, wells); bool *marks = CallocT<bool>(MapSize()); - for (uint wells = ScaleByMapSize(4 << _settings_game.game_creation.amount_of_rivers); wells != 0; wells--) { + for (; wells != 0; wells--) { + IncreaseGeneratingWorldProgress(GWP_RIVER); for (int tries = 0; tries < 128; tries++) { TileIndex t = RandomTile(); if (!CircularTileSearch(&t, 8, FindSpring, NULL)) continue; |