(svn r18563) -Document: some industry related functions

This commit is contained in:
rubidium
2009-12-20 13:45:43 +00:00
parent ca5a9ab995
commit 6803672c88
2 changed files with 12 additions and 0 deletions

View File

@@ -181,6 +181,11 @@ void ResetIndustries();
extern IndustrySpec _industry_specs[NUM_INDUSTRYTYPES];
extern IndustryTileSpec _industry_tile_specs[NUM_INDUSTRYTILES];
/**
* Do industry gfx ID translation for NewGRFs.
* @param gfx the type to get the override for.
* @return the gfx to actually work with.
*/
static inline IndustryGfx GetTranslatedIndustryTileID(IndustryGfx gfx)
{
/* the 0xFF should be GFX_WATERTILE_SPECIALCHECK but for reasons of include mess,