summaryrefslogtreecommitdiff
path: root/bridge_gui.c
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2005-12-10 12:05:39 +0000
committerpeter1138 <peter1138@openttd.org>2005-12-10 12:05:39 +0000
commit80986fcd3289879cf88a7978f5c1d305b0a48158 (patch)
tree4ae75b1c93989fadb955dd408fcc2c0589671b22 /bridge_gui.c
parent50a1e16943b03a77c908d938eabcf075390e0dff (diff)
downloadopenttd-80986fcd3289879cf88a7978f5c1d305b0a48158.tar.xz
(svn r3282) - Codechange: Replace tests against CMD_ERROR with CmdFailed()
Diffstat (limited to 'bridge_gui.c')
-rw-r--r--bridge_gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bridge_gui.c b/bridge_gui.c
index be99c25d2..78a4fa995 100644
--- a/bridge_gui.c
+++ b/bridge_gui.c
@@ -130,7 +130,7 @@ void ShowBuildBridgeWindow(TileIndex start, TileIndex end, byte bridge_type)
// returns CMD_ERROR on failure, and price on success
ret = DoCommandByTile(end, start, (bridge_type << 8), DC_AUTO | DC_QUERY_COST, CMD_BUILD_BRIDGE);
- if (ret == CMD_ERROR) {
+ if (CmdFailed(ret)) {
errmsg = _error_message;
} else {
// check which bridges can be built