(svn r26457) -Codechange: Remove unused parameter from SetIndustryCompleted
This commit is contained in:
@@ -518,7 +518,7 @@ static void TransportIndustryGoods(TileIndex tile)
|
|||||||
|
|
||||||
if (newgfx != INDUSTRYTILE_NOANIM) {
|
if (newgfx != INDUSTRYTILE_NOANIM) {
|
||||||
ResetIndustryConstructionStage(tile);
|
ResetIndustryConstructionStage(tile);
|
||||||
SetIndustryCompleted(tile, true);
|
SetIndustryCompleted(tile);
|
||||||
SetIndustryGfx(tile, newgfx);
|
SetIndustryGfx(tile, newgfx);
|
||||||
MarkTileDirtyByTile(tile);
|
MarkTileDirtyByTile(tile);
|
||||||
}
|
}
|
||||||
@@ -718,7 +718,7 @@ static void MakeIndustryTileBigger(TileIndex tile)
|
|||||||
SetIndustryConstructionCounter(tile, 0);
|
SetIndustryConstructionCounter(tile, 0);
|
||||||
SetIndustryConstructionStage(tile, stage);
|
SetIndustryConstructionStage(tile, stage);
|
||||||
StartStopIndustryTileAnimation(tile, IAT_CONSTRUCTION_STATE_CHANGE);
|
StartStopIndustryTileAnimation(tile, IAT_CONSTRUCTION_STATE_CHANGE);
|
||||||
if (stage == INDUSTRY_COMPLETED) SetIndustryCompleted(tile, true);
|
if (stage == INDUSTRY_COMPLETED) SetIndustryCompleted(tile);
|
||||||
|
|
||||||
MarkTileDirtyByTile(tile);
|
MarkTileDirtyByTile(tile);
|
||||||
|
|
||||||
@@ -854,7 +854,7 @@ static void TileLoop_Industry(TileIndex tile)
|
|||||||
case GFX_GOLD_MINE_TOWER_ANIMATED: gfx = GFX_GOLD_MINE_TOWER_NOT_ANIMATED; break;
|
case GFX_GOLD_MINE_TOWER_ANIMATED: gfx = GFX_GOLD_MINE_TOWER_NOT_ANIMATED; break;
|
||||||
}
|
}
|
||||||
SetIndustryGfx(tile, gfx);
|
SetIndustryGfx(tile, gfx);
|
||||||
SetIndustryCompleted(tile, true);
|
SetIndustryCompleted(tile);
|
||||||
SetIndustryConstructionStage(tile, 3);
|
SetIndustryConstructionStage(tile, 3);
|
||||||
DeleteAnimatedTile(tile);
|
DeleteAnimatedTile(tile);
|
||||||
}
|
}
|
||||||
|
@@ -85,13 +85,12 @@ IndustryType GetIndustryType(TileIndex tile);
|
|||||||
/**
|
/**
|
||||||
* Set if the industry that owns the tile as under construction or not
|
* Set if the industry that owns the tile as under construction or not
|
||||||
* @param tile the tile to query
|
* @param tile the tile to query
|
||||||
* @param isCompleted whether it is completed or not
|
|
||||||
* @pre IsTileType(tile, MP_INDUSTRY)
|
* @pre IsTileType(tile, MP_INDUSTRY)
|
||||||
*/
|
*/
|
||||||
static inline void SetIndustryCompleted(TileIndex tile, bool isCompleted)
|
static inline void SetIndustryCompleted(TileIndex tile)
|
||||||
{
|
{
|
||||||
assert(IsTileType(tile, MP_INDUSTRY));
|
assert(IsTileType(tile, MP_INDUSTRY));
|
||||||
SB(_m[tile].m1, 7, 1, isCompleted ? 1 :0);
|
SB(_m[tile].m1, 7, 1, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user