src/industry.h
changeset 7467 e586e63fc58e
parent 7462 74a281f80498
child 7473 3dfe8243a870
equal deleted inserted replaced
7466:830dce38f50a 7467:e586e63fc58e
   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