summaryrefslogtreecommitdiff
path: root/src/industrytype.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-12-20 13:45:43 +0000
committerrubidium <rubidium@openttd.org>2009-12-20 13:45:43 +0000
commit6803672c8872bdfc71b48c6bf33415e6d6cdae0b (patch)
tree6605b93fb39123066ff4dba75957f1a7402d0e55 /src/industrytype.h
parentca5a9ab99504e40c1f84d042321371933ebe014d (diff)
downloadopenttd-6803672c8872bdfc71b48c6bf33415e6d6cdae0b.tar.xz
(svn r18563) -Document: some industry related functions
Diffstat (limited to 'src/industrytype.h')
-rw-r--r--src/industrytype.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/industrytype.h b/src/industrytype.h
index 051f2f086..8b86526e1 100644
--- a/src/industrytype.h
+++ b/src/industrytype.h
@@ -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,