diff options
author | rubidium <rubidium@openttd.org> | 2010-12-11 19:49:44 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-12-11 19:49:44 +0000 |
commit | 293ede7bdf2e3e4f2aeadd382fe3965a3fb0230c (patch) | |
tree | 9349992dec24c67af455a4129fd4096d1e3f2075 /src/tunnelbridge_cmd.cpp | |
parent | 7cf40e5d250bc07e5e0f3cacafc8b0b659889a37 (diff) | |
download | openttd-293ede7bdf2e3e4f2aeadd382fe3965a3fb0230c.tar.xz |
(svn r21471) -Change [FS#4153]: make building aqueducts behave more like building tunnels. They can't be built on flat (or foundationed) tiles, so there is at most one destination tile like there is only one for tunnels
Diffstat (limited to 'src/tunnelbridge_cmd.cpp')
-rw-r--r-- | src/tunnelbridge_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tunnelbridge_cmd.cpp b/src/tunnelbridge_cmd.cpp index 6a4309445..f47708ce7 100644 --- a/src/tunnelbridge_cmd.cpp +++ b/src/tunnelbridge_cmd.cpp @@ -211,7 +211,7 @@ CommandCost CmdBuildBridge(TileIndex end_tile, DoCommandFlag flags, uint32 p1, u /* unpack parameters */ BridgeType bridge_type = GB(p2, 0, 8); - if (!IsValidTile(p1)) return CMD_ERROR; + if (!IsValidTile(p1)) return_cmd_error(STR_ERROR_BRIDGE_THROUGH_MAP_BORDER); TransportType transport_type = Extract<TransportType, 15, 2>(p2); |