diff options
author | Darkvater <darkvater@openttd.org> | 2006-09-05 23:43:42 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2006-09-05 23:43:42 +0000 |
commit | 3fee2555433c62735640c7e99f8a777ba060e5e5 (patch) | |
tree | a8ac54e5dd4a340b2ca6f298551d019e3ebc747c /clear_cmd.c | |
parent | 80814dbb1d01f651ba7c60547dc1b52c1c209378 (diff) | |
download | openttd-3fee2555433c62735640c7e99f8a777ba060e5e5.tar.xz |
(svn r6407) -Fix: Check return values of DoCommand() with CmdFailed and that of DoCommandP
with a boolean type.
Diffstat (limited to 'clear_cmd.c')
-rw-r--r-- | clear_cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clear_cmd.c b/clear_cmd.c index c12d30755..0093d8bca 100644 --- a/clear_cmd.c +++ b/clear_cmd.c @@ -138,7 +138,7 @@ static int TerraformProc(TerraformerState *ts, TileIndex tile, int mode) ret = DoCommand(tile, 0,0, ts->flags & ~DC_EXEC, CMD_LANDSCAPE_CLEAR); - if (ret == CMD_ERROR) { + if (CmdFailed(ret)) { _terraform_err_tile = tile; return -1; } |