diff options
author | frosch <frosch@openttd.org> | 2010-11-21 18:39:12 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2010-11-21 18:39:12 +0000 |
commit | 55d604e60d1bcf9e6ee150bc0ab63805105bfe09 (patch) | |
tree | e0233b158cdb0438bc2c4f645526b7c6f8640066 /src/station_cmd.cpp | |
parent | 612516ff7631f427099c9850941202f2ef33e9ac (diff) | |
download | openttd-55d604e60d1bcf9e6ee150bc0ab63805105bfe09.tar.xz |
(svn r21291) -Fix: Treat objects on water like water in more cases.
Diffstat (limited to 'src/station_cmd.cpp')
-rw-r--r-- | src/station_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp index 06ad7d982..9936c6a8c 100644 --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -2386,7 +2386,7 @@ CommandCost CmdBuildDock(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32 direction = ReverseDiagDir(direction); /* Docks cannot be placed on rapids */ - if (IsWaterTile(tile)) return_cmd_error(STR_ERROR_SITE_UNSUITABLE); + if (HasTileWaterGround(tile)) return_cmd_error(STR_ERROR_SITE_UNSUITABLE); CommandCost ret = CheckIfAuthorityAllowsNewStation(tile, flags); if (ret.Failed()) return ret; |