(svn r23107) -Codechange: let GetSlopePixelZ and TerraformTile tile type functions use int z as well
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user