diff options
author | peter1138 <peter1138@openttd.org> | 2005-12-10 12:05:39 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2005-12-10 12:05:39 +0000 |
commit | 809b03c81a841fcc428943c65760c74f3d26df57 (patch) | |
tree | 4ae75b1c93989fadb955dd408fcc2c0589671b22 /road_cmd.c | |
parent | 6a6e1450106f9944f74021edcd9aec54b3cc11ab (diff) | |
download | openttd-809b03c81a841fcc428943c65760c74f3d26df57.tar.xz |
(svn r3282) - Codechange: Replace tests against CMD_ERROR with CmdFailed()
Diffstat (limited to 'road_cmd.c')
-rw-r--r-- | road_cmd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/road_cmd.c b/road_cmd.c index 7a0baae69..3da86c3a6 100644 --- a/road_cmd.c +++ b/road_cmd.c @@ -712,8 +712,7 @@ static int32 ClearTile_Road(TileIndex tile, byte flags) return_cmd_error(STR_1801_MUST_REMOVE_ROAD_FIRST); ret = DoCommandByTile(tile, (m5&8)?5:10, 0, flags, CMD_REMOVE_ROAD); - if (ret == CMD_ERROR) - return CMD_ERROR; + if (CmdFailed(ret)) return CMD_ERROR; if (flags & DC_EXEC) { DoCommandByTile(tile, 0, 0, flags, CMD_LANDSCAPE_CLEAR); |