summaryrefslogtreecommitdiff
path: root/src/industry_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-11-04 11:36:10 +0000
committerrubidium <rubidium@openttd.org>2011-11-04 11:36:10 +0000
commit459c9523e8acdf314ce697460f4768eec228daac (patch)
tree60320999f3a69b8595d152af6e9474292da902d8 /src/industry_cmd.cpp
parent19eabdba2cf0184d5dc55cb3b9b8a7b5fe7ccfd3 (diff)
downloadopenttd-459c9523e8acdf314ce697460f4768eec228daac.tar.xz
(svn r23107) -Codechange: let GetSlopePixelZ and TerraformTile tile type functions use int z as well
Diffstat (limited to 'src/industry_cmd.cpp')
-rw-r--r--src/industry_cmd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp
index e42e87e51..7ebca2368 100644
--- a/src/industry_cmd.cpp
+++ b/src/industry_cmd.cpp
@@ -364,7 +364,7 @@ static void DrawTile_Industry(TileInfo *ti)
}
}
-static uint GetSlopePixelZ_Industry(TileIndex tile, uint x, uint y)
+static int GetSlopePixelZ_Industry(TileIndex tile, uint x, uint y)
{
return GetTileMaxPixelZ(tile);
}
@@ -2715,7 +2715,7 @@ bool IndustrySpec::UsesSmoothEconomy() const
!(HasBit(this->callback_mask, CBM_IND_MONTHLYPROD_CHANGE) || HasBit(this->callback_mask, CBM_IND_PRODUCTION_CHANGE)); // production change callbacks
}
-static CommandCost TerraformTile_Industry(TileIndex tile, DoCommandFlag flags, uint z_new, Slope tileh_new)
+static CommandCost TerraformTile_Industry(TileIndex tile, DoCommandFlag flags, int z_new, Slope tileh_new)
{
if (AutoslopeEnabled()) {
/* We imitate here TTDP's behaviour: