summaryrefslogtreecommitdiff
path: root/src/train_cmd.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/train_cmd.cpp
parentd8e126d98ddc35df0ac97bd35a076edf1cf172c8 (diff)
downloadopenttd-4d93b704d9f0e6e58dac1d97f79a05bd4320c43f.tar.xz
(svn r18866) -Codechange: remove the CmdFailed(ret)/CmdSucceeded(ret) wrapper functions
Diffstat (limited to 'src/train_cmd.cpp')
-rw-r--r--src/train_cmd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp
index 614ce7b12..fe730b44b 100644
--- a/src/train_cmd.cpp
+++ b/src/train_cmd.cpp
@@ -763,8 +763,8 @@ static void NormalizeTrainVehInDepot(const Train *u)
FOR_ALL_TRAINS(v) {
if (v->IsFreeWagon() && v->tile == u->tile &&
v->track == TRACK_BIT_DEPOT) {
- if (CmdFailed(DoCommand(0, v->index | (u->index << 16), 1, DC_EXEC,
- CMD_MOVE_RAIL_VEHICLE)))
+ if (DoCommand(0, v->index | (u->index << 16), 1, DC_EXEC,
+ CMD_MOVE_RAIL_VEHICLE).Failed())
break;
}
}