diff options
author | peter1138 <peter1138@openttd.org> | 2008-01-22 22:17:28 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2008-01-22 22:17:28 +0000 |
commit | b5534e42a0a87aa3ce75e2d1ae4c6a8b9e53c540 (patch) | |
tree | 14109ed3e9bb1cccb49d11a1a960f2d9ff8d66a6 /src/industry_cmd.cpp | |
parent | 171e84cbad07c10f816200d0db1ccbfb0de65695 (diff) | |
download | openttd-b5534e42a0a87aa3ce75e2d1ae4c6a8b9e53c540.tar.xz |
(svn r11952) -Fix (r11926): Prevent industries from being built on rivers, unless they require water.
Diffstat (limited to 'src/industry_cmd.cpp')
-rw-r--r-- | src/industry_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp index 6d7eda55c..967c1d385 100644 --- a/src/industry_cmd.cpp +++ b/src/industry_cmd.cpp @@ -1226,7 +1226,7 @@ static bool CheckIfIndustryTilesAreFree(TileIndex tile, const IndustryTileTable IndustryBehaviour ind_behav = GetIndustrySpec(type)->behaviour; /* Perform land/water check if not disabled */ - if (!HasBit(its->slopes_refused, 5) && (IsWaterTile(cur_tile) == !(ind_behav & INDUSTRYBEH_BUILT_ONWATER))) return false; + if (!HasBit(its->slopes_refused, 5) && ((IsWaterTile(cur_tile) || IsRiverTile(cur_tile)) == !(ind_behav & INDUSTRYBEH_BUILT_ONWATER))) return false; if (HasBit(its->callback_flags, CBM_INDT_SHAPE_CHECK)) { custom_shape = true; |