# HG changeset patch # User Darkvater # Date 1150207452 0 # Node ID 1d6387c126ff882c2b9220103f486ef981e75425 # Parent 301ff669a2e661b9f6058bcdbb986834ad631cbc (svn r5248) - [Codechange]: Remove TerraformProc()'s mode parameter as it is not used diff --git a/clear_cmd.c b/clear_cmd.c --- a/clear_cmd.c +++ b/clear_cmd.c @@ -86,14 +86,13 @@ 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 @@ 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;