summaryrefslogtreecommitdiff
path: root/src/industry_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-10-16 19:48:58 +0000
committerrubidium <rubidium@openttd.org>2007-10-16 19:48:58 +0000
commitba7c595d846245659c569e0510c3642e88d6992c (patch)
tree45653866becd6ad493d17cf4b6e65801597a47b5 /src/industry_cmd.cpp
parent4f512a70c360e2aa45e80aacdbcc95d2a754b987 (diff)
downloadopenttd-ba7c595d846245659c569e0510c3642e88d6992c.tar.xz
(svn r11276) -Codechange: be more consistent with naming of some accessors.
-Fix: make sure canals are never owned by water. Based on a patch by boekabart.
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 788396d4b..7dfb5e38b 100644
--- a/src/industry_cmd.cpp
+++ b/src/industry_cmd.cpp
@@ -1236,11 +1236,11 @@ static bool CheckIfIndustryTilesAreFree(TileIndex tile, const IndustryTileTable
/* As soon as the tile is not water, bail out.
* But that does not mean the search is over. You have
* to make sure every tile of the industry will be only water*/
- if (!IsClearWaterTile(cur_tile)) return false;
+ if (!IsWaterTile(cur_tile)) return false;
} else {
Slope tileh;
- if (IsClearWaterTile(cur_tile)) return false;
+ if (IsWaterTile(cur_tile)) return false;
tileh = GetTileSlope(cur_tile, NULL);