Fix #386: Tree tile grass ground density update when tree growth/spread disabled
This commit is contained in:
@@ -925,8 +925,6 @@ static void TileLoop_Trees(TileIndex tile)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_settings_game.construction.extra_tree_placement == ETP_NO_GROWTH_NO_SPREAD) return;
|
|
||||||
|
|
||||||
if (GetTreeCounter(tile) < 15) {
|
if (GetTreeCounter(tile) < 15) {
|
||||||
if (_settings_game.construction.tree_growth_rate > 0) {
|
if (_settings_game.construction.tree_growth_rate > 0) {
|
||||||
/* slow, very slow, extremely slow */
|
/* slow, very slow, extremely slow */
|
||||||
@@ -942,6 +940,8 @@ static void TileLoop_Trees(TileIndex tile)
|
|||||||
}
|
}
|
||||||
SetTreeCounter(tile, 0);
|
SetTreeCounter(tile, 0);
|
||||||
|
|
||||||
|
if (_settings_game.construction.extra_tree_placement == ETP_NO_GROWTH_NO_SPREAD) return;
|
||||||
|
|
||||||
switch (GetTreeGrowth(tile)) {
|
switch (GetTreeGrowth(tile)) {
|
||||||
case 3: // regular sized tree
|
case 3: // regular sized tree
|
||||||
if (_settings_game.game_creation.landscape == LT_TROPIC &&
|
if (_settings_game.game_creation.landscape == LT_TROPIC &&
|
||||||
|
Reference in New Issue
Block a user