Add: zero tree growth setting

This commit is contained in:
Yourself
2020-07-10 15:18:05 -07:00
parent 48b15bb7b8
commit 087cae82fc
5 changed files with 5 additions and 2 deletions

View File

@@ -762,7 +762,7 @@ static void TileLoop_Trees(TileIndex tile)
if (GetTreeCounter(tile) < 15) {
if (_settings_game.construction.tree_growth_rate > 0) {
/* slow, very slow, extremely slow */
uint16 grow_slowing_values[3] = { 0x10000 / 5, 0x10000 / 20, 0x10000 / 120 };
uint16 grow_slowing_values[4] = { 0x10000 / 5, 0x10000 / 20, 0x10000 / 120, 0 };
if (GB(Random(), 0, 16) < grow_slowing_values[_settings_game.construction.tree_growth_rate - 1]) {
AddTreeCounter(tile, 1);