summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarkvater <Darkvater@openttd.org>2006-06-13 14:04:12 +0000
committerDarkvater <Darkvater@openttd.org>2006-06-13 14:04:12 +0000
commit1ae2eba279aea82094360a5b3f84bdac153f50dd (patch)
treeb102e7142c84ad074b01f4a3a567ee5c524c5149
parent33f1abc62061b73cb44a3d68ee563f8d128d0caa (diff)
downloadopenttd-1ae2eba279aea82094360a5b3f84bdac153f50dd.tar.xz
(svn r5248) - [Codechange]: Remove TerraformProc()'s mode parameter as it is not used
-rw-r--r--clear_cmd.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/clear_cmd.c b/clear_cmd.c
index 2bd0dd732..792b430d3 100644
--- a/clear_cmd.c
+++ b/clear_cmd.c
@@ -86,14 +86,13 @@ static void TerraformAddDirtyTileAround(TerraformerState *ts, TileIndex tile)
TerraformAddDirtyTile(ts, tile);
}
-static int TerraformProc(TerraformerState *ts, TileIndex tile, int mode)
+static int TerraformProc(TerraformerState *ts, TileIndex tile)
{
int r;
assert(tile < MapSize());
- if ((r=TerraformAllowTileProcess(ts, tile)) <= 0)
- return r;
+ if ((r = TerraformAllowTileProcess(ts, tile)) <= 0) return r;
if (!IsTileType(tile, MP_RAILWAY)) {
int32 ret = DoCommand(tile, 0,0, ts->flags & ~DC_EXEC, CMD_LANDSCAPE_CLEAR);
@@ -132,10 +131,10 @@ static bool TerraformTileHeight(TerraformerState *ts, TileIndex tile, int height
nh = TerraformGetHeightOfTile(ts, tile);
if (nh < 0 || height == nh) return false;
- if (TerraformProc(ts, tile, 0) < 0) return false;
- if (TerraformProc(ts, tile + TileDiffXY( 0, -1), 1) < 0) return false;
- if (TerraformProc(ts, tile + TileDiffXY(-1, -1), 2) < 0) return false;
- if (TerraformProc(ts, tile + TileDiffXY(-1, 0), 3) < 0) return false;
+ if (TerraformProc(ts, tile) < 0) return false;
+ if (TerraformProc(ts, tile + TileDiffXY( 0, -1)) < 0) return false;
+ if (TerraformProc(ts, tile + TileDiffXY(-1, -1)) < 0) return false;
+ if (TerraformProc(ts, tile + TileDiffXY(-1, 0)) < 0) return false;
mod = ts->modheight;
count = ts->modheight_count;