diff options
author | rubidium <rubidium@openttd.org> | 2011-11-04 11:36:10 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-11-04 11:36:10 +0000 |
commit | 459c9523e8acdf314ce697460f4768eec228daac (patch) | |
tree | 60320999f3a69b8595d152af6e9474292da902d8 /src/water_cmd.cpp | |
parent | 19eabdba2cf0184d5dc55cb3b9b8a7b5fe7ccfd3 (diff) | |
download | openttd-459c9523e8acdf314ce697460f4768eec228daac.tar.xz |
(svn r23107) -Codechange: let GetSlopePixelZ and TerraformTile tile type functions use int z as well
Diffstat (limited to 'src/water_cmd.cpp')
-rw-r--r-- | src/water_cmd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/water_cmd.cpp b/src/water_cmd.cpp index b06d5c590..e5e159b56 100644 --- a/src/water_cmd.cpp +++ b/src/water_cmd.cpp @@ -794,7 +794,7 @@ void DrawShipDepotSprite(int x, int y, Axis axis, DepotPart part) } -static uint GetSlopePixelZ_Water(TileIndex tile, uint x, uint y) +static int GetSlopePixelZ_Water(TileIndex tile, uint x, uint y) { int z; Slope tileh = GetTilePixelSlope(tile, &z); @@ -1202,7 +1202,7 @@ static VehicleEnterTileStatus VehicleEnter_Water(Vehicle *v, TileIndex tile, int return VETSB_CONTINUE; } -static CommandCost TerraformTile_Water(TileIndex tile, DoCommandFlag flags, uint z_new, Slope tileh_new) +static CommandCost TerraformTile_Water(TileIndex tile, DoCommandFlag flags, int z_new, Slope tileh_new) { /* Canals can't be terraformed */ if (IsWaterTile(tile) && IsCanal(tile)) return_cmd_error(STR_ERROR_MUST_DEMOLISH_CANAL_FIRST); |