diff -r f40e88cff863 -r 646711c5feaa src/clear_cmd.cpp --- a/src/clear_cmd.cpp Sun Apr 15 17:04:44 2007 +0000 +++ b/src/clear_cmd.cpp Sat Apr 21 08:23:57 2007 +0000 @@ -79,7 +79,7 @@ if (count >= 625) return; - for (t = ts->tile_table; count != 0; count--,t++) { + for (t = ts->tile_table; count != 0; count--, t++) { if (*t == tile) return; } @@ -141,7 +141,7 @@ } } - ret = DoCommand(tile, 0,0, ts->flags & ~DC_EXEC, CMD_LANDSCAPE_CLEAR); + ret = DoCommand(tile, 0, 0, ts->flags & ~DC_EXEC, CMD_LANDSCAPE_CLEAR); if (CmdFailed(ret)) { _terraform_err_tile = tile; @@ -215,8 +215,8 @@ tile += ToTileIndexDiff(*ttm); r = TerraformGetHeightOfTile(ts, tile); - if (r != height && r-direction != height && r+direction != height) { - if (!TerraformTileHeight(ts, tile, r+direction)) + if (r != height && r - direction != height && r + direction != height) { + if (!TerraformTileHeight(ts, tile, r + direction)) return false; } } @@ -382,8 +382,8 @@ if (ey < sy) Swap(ey, sy); tile = TileXY(sx, sy); - size_x = ex-sx+1; - size_y = ey-sy+1; + size_x = ex - sx + 1; + size_y = ey - sy + 1; money = GetAvailableMoneyForCommand(); cost = 0;