equal
deleted
inserted
replaced
107 * @return the construction stage |
107 * @return the construction stage |
108 */ |
108 */ |
109 static inline byte GetIndustryConstructionStage(TileIndex tile) |
109 static inline byte GetIndustryConstructionStage(TileIndex tile) |
110 { |
110 { |
111 assert(IsTileType(tile, MP_INDUSTRY)); |
111 assert(IsTileType(tile, MP_INDUSTRY)); |
112 return GB(_m[tile].m1, 0, 2); |
112 return IsIndustryCompleted(tile) ? (byte)INDUSTRY_COMPLETED : GB(_m[tile].m1, 0, 2); |
113 } |
113 } |
114 |
114 |
115 /** |
115 /** |
116 * Sets the industry construction stage of the specified tile |
116 * Sets the industry construction stage of the specified tile |
117 * @param tile the tile to query |
117 * @param tile the tile to query |