summaryrefslogtreecommitdiff
path: root/src/tunnelbridge_cmd.cpp
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2010-04-04 14:19:17 +0000
committeralberth <alberth@openttd.org>2010-04-04 14:19:17 +0000
commitfb4ca3e569df251501db7fa08940893e8419d090 (patch)
tree4d6bddf02c239f85ad5520d7faaa20ae3759420c /src/tunnelbridge_cmd.cpp
parent7f5a0751e26489a5074357c2710d12c60d74300f (diff)
downloadopenttd-fb4ca3e569df251501db7fa08940893e8419d090.tar.xz
(svn r19560) -Fix: Bridge build error message should not show the same message twice.
Diffstat (limited to 'src/tunnelbridge_cmd.cpp')
-rw-r--r--src/tunnelbridge_cmd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tunnelbridge_cmd.cpp b/src/tunnelbridge_cmd.cpp
index 6eb1377a5..6cf02644c 100644
--- a/src/tunnelbridge_cmd.cpp
+++ b/src/tunnelbridge_cmd.cpp
@@ -248,9 +248,9 @@ CommandCost CmdBuildBridge(TileIndex end_tile, DoCommandFlag flags, uint32 p1, u
uint bridge_len = GetTunnelBridgeLength(tile_start, tile_end);
if (transport_type != TRANSPORT_WATER) {
/* set and test bridge length, availability */
- if (!CheckBridgeAvailability(bridge_type, bridge_len, flags)) return_cmd_error(STR_ERROR_CAN_T_BUILD_BRIDGE_HERE);
+ if (!CheckBridgeAvailability(bridge_type, bridge_len, flags)) return CMD_ERROR;
} else {
- if (bridge_len > (_settings_game.construction.longbridges ? 100U : 16U)) return_cmd_error(STR_ERROR_CAN_T_BUILD_BRIDGE_HERE);
+ if (bridge_len > (_settings_game.construction.longbridges ? 100U : 16U)) return CMD_ERROR;
}
/* retrieve landscape height and ensure it's on land */