diff options
author | alberth <alberth@openttd.org> | 2010-03-20 17:08:16 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2010-03-20 17:08:16 +0000 |
commit | c9b0e9d25f444f628d1f88f177fee062f7ef95c4 (patch) | |
tree | 58c68cc38505b783a69cdd39d0e57033813bed15 | |
parent | a9d4eb86b8dc6e7cf8b5897d180edf6f78072115 (diff) | |
download | openttd-c9b0e9d25f444f628d1f88f177fee062f7ef95c4.tar.xz |
(svn r19488) -Codechange: Use last_error data for removal in CmdRailTrackHelper() as well.
-rw-r--r-- | src/rail_cmd.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/rail_cmd.cpp b/src/rail_cmd.cpp index c25ba9107..61b004a10 100644 --- a/src/rail_cmd.cpp +++ b/src/rail_cmd.cpp @@ -789,7 +789,6 @@ static CommandCost CmdRailTrackHelper(TileIndex tile, DoCommandFlag flags, uint3 } if (had_success) return total_cost; - if (remove) return CMD_ERROR; return last_error; } |