Reduce building of cacti

pull/278/head
Andreas Schmitt 3 years ago committed by Jonathan G Rennison
parent fe3c5d0330
commit f944c9e7ba

@ -316,8 +316,7 @@ static TileIndex FindTreePositionAtSameHeight(TileIndex tile, uint steps)
*/
static void PlantTreeAtSameHeight(TileIndex tile)
{
const int max_tries = (GetTreeType(tile) == TREE_CACTUS) ? 8 : 4;
const auto new_tile = FindTreePositionAtSameHeight(tile, max_tries);
const auto new_tile = FindTreePositionAtSameHeight(tile, 4);
if (new_tile != INVALID_TILE) {
PlantTreesOnTile(new_tile, GetTreeType(tile), 0, 0);

Loading…
Cancel
Save