diff options
Diffstat (limited to 'industry_map.h')
-rw-r--r-- | industry_map.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/industry_map.h b/industry_map.h index 63c289503..d3646cd95 100644 --- a/industry_map.h +++ b/industry_map.h @@ -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); |