(svn r6407) -Fix: Check return values of DoCommand() with CmdFailed and that of DoCommandP

with a boolean type.
This commit is contained in:
Darkvater
2006-09-05 23:43:42 +00:00
parent 7e4d0f112e
commit 544ff2aaf9
3 changed files with 9 additions and 4 deletions

View File

@@ -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;
}