summaryrefslogtreecommitdiff
path: root/src/station_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-01-18 22:57:21 +0000
committerrubidium <rubidium@openttd.org>2010-01-18 22:57:21 +0000
commit4d93b704d9f0e6e58dac1d97f79a05bd4320c43f (patch)
treef80050fa083b86d7a7d75efd1ae49a04b358666d /src/station_gui.cpp
parentd8e126d98ddc35df0ac97bd35a076edf1cf172c8 (diff)
downloadopenttd-4d93b704d9f0e6e58dac1d97f79a05bd4320c43f.tar.xz
(svn r18866) -Codechange: remove the CmdFailed(ret)/CmdSucceeded(ret) wrapper functions
Diffstat (limited to 'src/station_gui.cpp')
-rw-r--r--src/station_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/station_gui.cpp b/src/station_gui.cpp
index 3bf2cf233..377642b86 100644
--- a/src/station_gui.cpp
+++ b/src/station_gui.cpp
@@ -1499,7 +1499,7 @@ static bool StationJoinerNeeded(CommandContainer cmd, TileArea ta)
if (!_ctrl_pressed) return false;
/* Now check if we could build there */
- if (CmdFailed(DoCommand(&cmd, CommandFlagsToDCFlags(GetCommandFlags(cmd.cmd))))) return false;
+ if (DoCommand(&cmd, CommandFlagsToDCFlags(GetCommandFlags(cmd.cmd))).Failed()) return false;
/* Test for adjacent station or station below selection.
* If adjacent-stations is disabled and we are building next to a station, do not show the selection window.