(svn r4087) Add IsIndustryCompleted() to check if a industry tile is fully built

This commit is contained in:
tron
2006-03-24 13:46:45 +00:00
parent 05bae48ef8
commit 0977a8a04e
2 changed files with 16 additions and 11 deletions

View File

@@ -16,6 +16,12 @@ static inline Industry* GetIndustryByTile(TileIndex t)
}
static inline bool IsIndustryCompleted(TileIndex tile)
{
return HASBIT(_m[tile].m1, 7);
}
static inline void MakeIndustry(TileIndex t, uint index, uint gfx)
{
SetTileType(t, MP_INDUSTRY);