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 | 80986fcd3289879cf88a7978f5c1d305b0a48158 (patch) | |
tree | 4ae75b1c93989fadb955dd408fcc2c0589671b22 /industry_cmd.c | |
parent | 50a1e16943b03a77c908d938eabcf075390e0dff (diff) | |
download | openttd-80986fcd3289879cf88a7978f5c1d305b0a48158.tar.xz |
(svn r3282) - Codechange: Replace tests against CMD_ERROR with CmdFailed()
Diffstat (limited to 'industry_cmd.c')
-rw-r--r-- | industry_cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/industry_cmd.c b/industry_cmd.c index 8e78e1619..1aad8c926 100644 --- a/industry_cmd.c +++ b/industry_cmd.c @@ -1354,7 +1354,7 @@ static bool CheckIfIndustryTilesAreFree(TileIndex tile, const IndustryTileTable* } } else { do_clear: - if (DoCommandByTile(cur_tile, 0, 0, DC_AUTO, CMD_LANDSCAPE_CLEAR) == CMD_ERROR) + if (CmdFailed(DoCommandByTile(cur_tile, 0, 0, DC_AUTO, CMD_LANDSCAPE_CLEAR))) return false; } } |