diff options
author | peter1138 <peter1138@openttd.org> | 2008-02-02 09:28:43 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2008-02-02 09:28:43 +0000 |
commit | 1d891a8b15f750ea7aaa14622536e87765c59e7a (patch) | |
tree | 44979390033d921d0bb48f8dddd3dec3c4d7267b /src/industry_cmd.cpp | |
parent | 7cf2c834627ee41e89f5167ed05d18ec4cc7df62 (diff) | |
download | openttd-1d891a8b15f750ea7aaa14622536e87765c59e7a.tar.xz |
(svn r12042) -Fix [FS#1676]: Reimplement how rivers and canals are stored in the map, allowing the sea/river/canal status to also be
stored for buoys, docks, locks and depots. All these are now allowed on rivers and removal of them will revert to the
original water type.
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 2ef3cf353..d462b185b 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) || IsRiverTile(cur_tile)) == !(ind_behav & INDUSTRYBEH_BUILT_ONWATER))) return false; + if (!HasBit(its->slopes_refused, 5) && (IsWaterTile(cur_tile) == !(ind_behav & INDUSTRYBEH_BUILT_ONWATER))) return false; if (HasBit(its->callback_flags, CBM_INDT_SHAPE_CHECK)) { custom_shape = true; |