equal
deleted
inserted
replaced
218 |
218 |
219 /* writable arrays of specs */ |
219 /* writable arrays of specs */ |
220 extern IndustrySpec _industry_specs[NUM_INDUSTRYTYPES]; |
220 extern IndustrySpec _industry_specs[NUM_INDUSTRYTYPES]; |
221 extern IndustryTileSpec _industry_tile_specs[NUM_INDUSTRYTILES]; |
221 extern IndustryTileSpec _industry_tile_specs[NUM_INDUSTRYTILES]; |
222 |
222 |
|
223 static inline IndustryGfx GetTranslatedIndustryTileID(IndustryGfx gfx) |
|
224 { |
|
225 assert(gfx < INVALID_INDUSTRYTILE); |
|
226 const IndustryTileSpec *it = &_industry_tile_specs[gfx]; |
|
227 return it->grf_prop.override == INVALID_INDUSTRYTILE ? gfx : it->grf_prop.override; |
|
228 } |
|
229 |
223 /* smallmap_gui.cpp */ |
230 /* smallmap_gui.cpp */ |
224 void BuildIndustriesLegend(); |
231 void BuildIndustriesLegend(); |
225 |
232 |
226 /** |
233 /** |
227 * Check if an Industry exists whithin the pool of industries |
234 * Check if an Industry exists whithin the pool of industries |