From 19eabdba2cf0184d5dc55cb3b9b8a7b5fe7ccfd3 Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 4 Nov 2011 11:30:37 +0000 Subject: (svn r23106) -Codechange: pass int* to GetTileSlope and friends --- src/terraform_cmd.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/terraform_cmd.cpp') diff --git a/src/terraform_cmd.cpp b/src/terraform_cmd.cpp index ccdd1505e..adc4108c5 100644 --- a/src/terraform_cmd.cpp +++ b/src/terraform_cmd.cpp @@ -292,14 +292,14 @@ CommandCost CmdTerraformLand(TileIndex tile, DoCommandFlag flags, uint32 p1, uin if (IsTileType(tile, MP_VOID)) continue; /* Find new heights of tile corners */ - uint z_N = TerraformGetHeightOfTile(&ts, tile + TileDiffXY(0, 0)); - uint z_W = TerraformGetHeightOfTile(&ts, tile + TileDiffXY(1, 0)); - uint z_S = TerraformGetHeightOfTile(&ts, tile + TileDiffXY(1, 1)); - uint z_E = TerraformGetHeightOfTile(&ts, tile + TileDiffXY(0, 1)); + int z_N = TerraformGetHeightOfTile(&ts, tile + TileDiffXY(0, 0)); + int z_W = TerraformGetHeightOfTile(&ts, tile + TileDiffXY(1, 0)); + int z_S = TerraformGetHeightOfTile(&ts, tile + TileDiffXY(1, 1)); + int z_E = TerraformGetHeightOfTile(&ts, tile + TileDiffXY(0, 1)); /* Find min and max height of tile */ - uint z_min = min(min(z_N, z_W), min(z_S, z_E)); - uint z_max = max(max(z_N, z_W), max(z_S, z_E)); + int z_min = min(min(z_N, z_W), min(z_S, z_E)); + int z_max = max(max(z_N, z_W), max(z_S, z_E)); /* Compute tile slope */ Slope tileh = (z_max > z_min + 1 ? SLOPE_STEEP : SLOPE_FLAT); -- cgit v1.2.3-54-g00ecf