diff options
author | rubidium <rubidium@openttd.org> | 2010-12-13 11:30:22 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-12-13 11:30:22 +0000 |
commit | 7ecb00547b0f947bf49d31cb2738776c15344ccb (patch) | |
tree | 036e77a28b94eaac9a6c876d927d255c15ef2ae8 | |
parent | a336aacb4fbb804b3ca692c0fe6a2708cfe1f440 (diff) | |
download | openttd-7ecb00547b0f947bf49d31cb2738776c15344ccb.tar.xz |
(svn r21495) -Codechange: don't hide a local variable
-rw-r--r-- | src/terraform_cmd.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/terraform_cmd.cpp b/src/terraform_cmd.cpp index 406bdf5be..b9614b035 100644 --- a/src/terraform_cmd.cpp +++ b/src/terraform_cmd.cpp @@ -411,10 +411,10 @@ CommandCost CmdLevelLand(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32 bool had_success = false; TileArea ta(tile, p1); - TILE_AREA_LOOP(tile, ta) { - uint curh = TileHeight(tile); + TILE_AREA_LOOP(t, ta) { + uint curh = TileHeight(t); while (curh != h) { - CommandCost ret = DoCommand(tile, SLOPE_N, (curh > h) ? 0 : 1, flags & ~DC_EXEC, CMD_TERRAFORM_LAND); + CommandCost ret = DoCommand(t, SLOPE_N, (curh > h) ? 0 : 1, flags & ~DC_EXEC, CMD_TERRAFORM_LAND); if (ret.Failed()) { last_error = ret; break; @@ -426,7 +426,7 @@ CommandCost CmdLevelLand(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32 _additional_cash_required = ret.GetCost(); return cost; } - DoCommand(tile, SLOPE_N, (curh > h) ? 0 : 1, flags, CMD_TERRAFORM_LAND); + DoCommand(t, SLOPE_N, (curh > h) ? 0 : 1, flags, CMD_TERRAFORM_LAND); } cost.AddCost(ret); |