summaryrefslogtreecommitdiff
path: root/src/tunnelbridge_cmd.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2010-09-13 19:45:39 +0000
committerfrosch <frosch@openttd.org>2010-09-13 19:45:39 +0000
commit3fb7f5aa87251bb261387c178105e76d0ec937d0 (patch)
tree7e430ef91eec46c7c804c3f6f7d21fdbcff08b0b /src/tunnelbridge_cmd.cpp
parentcb4261d6c39ad2a434e902363ac995771e413ff5 (diff)
downloadopenttd-3fb7f5aa87251bb261387c178105e76d0ec937d0.tar.xz
(svn r20802) -Fix: Building bridges on water/watery objects behaved inconsistently for towns and the bridge selection GUI.
Diffstat (limited to 'src/tunnelbridge_cmd.cpp')
-rw-r--r--src/tunnelbridge_cmd.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/tunnelbridge_cmd.cpp b/src/tunnelbridge_cmd.cpp
index fea58a6a5..de619adc6 100644
--- a/src/tunnelbridge_cmd.cpp
+++ b/src/tunnelbridge_cmd.cpp
@@ -257,11 +257,6 @@ CommandCost CmdBuildBridge(TileIndex end_tile, DoCommandFlag flags, uint32 p1, u
if (bridge_len > (_settings_game.construction.longbridges ? 100U : 16U)) return_cmd_error(STR_ERROR_BRIDGE_TOO_LONG);
}
- /* retrieve landscape height and ensure it's on land */
- if (IsWaterTile(tile_start) || IsWaterTile(tile_end)) {
- return_cmd_error(STR_ERROR_ENDS_OF_BRIDGE_MUST_BOTH);
- }
-
uint z_start;
uint z_end;
Slope tileh_start = GetTileSlope(tile_start, &z_start);