|
@@ -361,13 +361,13 @@ static void DrawTile_Industry(TileInfo *
|
|
|
{
|
|
|
int proc = dits->draw_proc - 1;
|
|
|
if (proc >= 0) _industry_draw_tile_procs[proc](ti);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
static uint GetSlopePixelZ_Industry(TileIndex tile, uint x, uint y)
|
|
|
static int GetSlopePixelZ_Industry(TileIndex tile, uint x, uint y)
|
|
|
{
|
|
|
return GetTileMaxPixelZ(tile);
|
|
|
}
|
|
|
|
|
|
static Foundation GetFoundation_Industry(TileIndex tile, Slope tileh)
|
|
|
{
|
|
@@ -2712,13 +2712,13 @@ bool IndustrySpec::UsesSmoothEconomy() c
|
|
|
{
|
|
|
return _settings_game.economy.smooth_economy &&
|
|
|
!(HasBit(this->callback_mask, CBM_IND_PRODUCTION_256_TICKS) || HasBit(this->callback_mask, CBM_IND_PRODUCTION_CARGO_ARRIVAL)) && // production callbacks
|
|
|
!(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:
|
|
|
* - Both new and old slope must not be steep.
|
|
|
* - TileMaxZ must not be changed.
|
|
|
* - Allow autoslope by default.
|