1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-19 02:12:37 +01:00

Codechange: Use constants for tree growth stages and tile update frequency (#12833)

This commit is contained in:
dP
2024-07-02 00:39:25 +05:00
committed by GitHub
parent 1e0004bcd6
commit f98b90ac2e
4 changed files with 67 additions and 48 deletions

View File

@@ -1102,7 +1102,7 @@ void PlantRandomFarmField(const Industry *i)
*/
static bool SearchLumberMillTrees(TileIndex tile, void *)
{
if (IsTileType(tile, MP_TREES) && GetTreeGrowth(tile) > 2) { ///< 3 and up means all fully grown trees
if (IsTileType(tile, MP_TREES) && GetTreeGrowth(tile) >= TreeGrowthStage::Grown) {
/* found a tree */
Backup<CompanyID> cur_company(_current_company, OWNER_NONE);