diff options
author | belugas <belugas@openttd.org> | 2007-02-02 15:14:28 +0000 |
---|---|---|
committer | belugas <belugas@openttd.org> | 2007-02-02 15:14:28 +0000 |
commit | 22a22a7d3f8c220725ecdbe2103d3a0e74c792bf (patch) | |
tree | aa1e233727998a1cb44a503a0a01acdfc8641619 /src | |
parent | 8be271f9b02c9ddd634d7d9ca7f752ea22b7937d (diff) | |
download | openttd-22a22a7d3f8c220725ecdbe2103d3a0e74c792bf.tar.xz |
(svn r8535) -Feature: Allow lumbermill to cut trees only when they are full grown.
This does not affect output of the mill, but make the visual aspect of it more accurate.
Prior of this, the mill produced cargo of the same amount even if the trees are on their first stages of growth.
Diffstat (limited to 'src')
-rw-r--r-- | src/industry_cmd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp index a7748bf92..0cb46211b 100644 --- a/src/industry_cmd.cpp +++ b/src/industry_cmd.cpp @@ -25,6 +25,7 @@ #include "genworld.h" #include "date.h" #include "water_map.h" +#include "tree_map.h" void ShowIndustryViewWindow(int industry); void BuildOilRig(TileIndex tile); @@ -865,7 +866,7 @@ static void MaybePlantFarmField(const Industry *i) */ static bool SearchLumberMillTrees(TileIndex tile, uint32 data) { - if (IsTileType(tile, MP_TREES)) { + if (IsTileType(tile, MP_TREES) && GetTreeGrowth(tile) > 2) { ///< 3 and up means all fully grown trees PlayerID old_player = _current_player; /* found a tree */ @@ -875,7 +876,6 @@ static bool SearchLumberMillTrees(TileIndex tile, uint32 data) SndPlayTileFx(SND_38_CHAINSAW, tile); DoCommand(tile, 0, 0, DC_EXEC, CMD_LANDSCAPE_CLEAR); - SetTropicZone(tile, TROPICZONE_INVALID); _current_player = old_player; return true; |