forked from mirror/OpenTTD
(svn r4087) Add IsIndustryCompleted() to check if a industry tile is fully built
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user