diff options
author | rubidium <rubidium@openttd.org> | 2007-06-18 16:42:40 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-06-18 16:42:40 +0000 |
commit | 82e79b847e6c0c19010f0bf8f7bc462cdcd9ebc3 (patch) | |
tree | a267e10793edc2f19da1d23e3a7f536644234f0f /src/rail_cmd.cpp | |
parent | 80d71953ba2bbf49157ec1208589e295bb900def (diff) | |
download | openttd-82e79b847e6c0c19010f0bf8f7bc462cdcd9ebc3.tar.xz |
(svn r10200) -Codechange: add "shortcut" for !CmdFailed (CmdSucceeded).
Diffstat (limited to 'src/rail_cmd.cpp')
-rw-r--r-- | src/rail_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rail_cmd.cpp b/src/rail_cmd.cpp index 8e54cafd2..c19287614 100644 --- a/src/rail_cmd.cpp +++ b/src/rail_cmd.cpp @@ -810,7 +810,7 @@ static CommandCost CmdSignalTrackHelper(TileIndex tile, uint32 flags, uint32 p1, ret = DoCommand(tile, p1, signals, flags, remove ? CMD_REMOVE_SIGNALS : CMD_BUILD_SIGNALS); /* Be user-friendly and try placing signals as much as possible */ - if (!CmdFailed(ret)) { + if (CmdSucceeded(ret)) { error = false; total_cost += ret; } |