summaryrefslogtreecommitdiff
path: root/src/industry_cmd.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2008-01-31 17:54:13 +0000
committerfrosch <frosch@openttd.org>2008-01-31 17:54:13 +0000
commita1c543e064dff7b80265ca1ead07eab7562f09c9 (patch)
treefc3e72fdb1e00ec295eee399031a16a5c311b79d /src/industry_cmd.cpp
parentfe9891c8ec0376a3a79195ee2bd76bba317865a5 (diff)
downloadopenttd-a1c543e064dff7b80265ca1ead07eab7562f09c9.tar.xz
(svn r12029) -Feature: Allow trees on shore.
Diffstat (limited to 'src/industry_cmd.cpp')
-rw-r--r--src/industry_cmd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp
index 6b46b7be0..2ef3cf353 100644
--- a/src/industry_cmd.cpp
+++ b/src/industry_cmd.cpp
@@ -841,7 +841,7 @@ static bool IsBadFarmFieldTile(TileIndex tile)
{
switch (GetTileType(tile)) {
case MP_CLEAR: return IsClearGround(tile, CLEAR_FIELDS) || IsClearGround(tile, CLEAR_SNOW) || IsClearGround(tile, CLEAR_DESERT);
- case MP_TREES: return false;
+ case MP_TREES: return (GetTreeGround(tile) == TREE_GROUND_SHORE);
default: return true;
}
}
@@ -850,7 +850,7 @@ static bool IsBadFarmFieldTile2(TileIndex tile)
{
switch (GetTileType(tile)) {
case MP_CLEAR: return IsClearGround(tile, CLEAR_SNOW) || IsClearGround(tile, CLEAR_DESERT);
- case MP_TREES: return false;
+ case MP_TREES: return (GetTreeGround(tile) == TREE_GROUND_SHORE);
default: return true;
}
}