summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2017-04-02 17:36:53 +0000
committerpeter1138 <peter1138@openttd.org>2017-04-02 17:36:53 +0000
commit27033a2231bfe40a79ad49559c96d0bf35b30ff8 (patch)
tree9df20a2269fc9bd265f63a3ff77208a30dcb7e54
parentd51defb0b90ee2fb9741e4a61cd3d463ba516fa5 (diff)
downloadopenttd-27033a2231bfe40a79ad49559c96d0bf35b30ff8.tar.xz
(svn r27841) -Fix: Don't consider locks or ship depots as clear water when placing industries.
-rw-r--r--src/industry_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp
index 5971964fd..8fea6953a 100644
--- a/src/industry_cmd.cpp
+++ b/src/industry_cmd.cpp
@@ -1383,7 +1383,7 @@ static CommandCost CheckIfIndustryTilesAreFree(TileIndex tile, const IndustryTil
}
if (gfx == GFX_WATERTILE_SPECIALCHECK) {
- if (!IsTileType(cur_tile, MP_WATER) ||
+ if (!IsWaterTile(cur_tile) ||
!IsTileFlat(cur_tile)) {
return_cmd_error(STR_ERROR_SITE_UNSUITABLE);
}