diff options
author | alberth <alberth@openttd.org> | 2010-04-04 14:19:17 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2010-04-04 14:19:17 +0000 |
commit | fb4ca3e569df251501db7fa08940893e8419d090 (patch) | |
tree | 4d6bddf02c239f85ad5520d7faaa20ae3759420c | |
parent | 7f5a0751e26489a5074357c2710d12c60d74300f (diff) | |
download | openttd-fb4ca3e569df251501db7fa08940893e8419d090.tar.xz |
(svn r19560) -Fix: Bridge build error message should not show the same message twice.
-rw-r--r-- | src/tunnelbridge_cmd.cpp | 4 |
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 */ |