summaryrefslogtreecommitdiff
path: root/src/industry_map.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/industry_map.h
parentca5a9ab99504e40c1f84d042321371933ebe014d (diff)
downloadopenttd-6803672c8872bdfc71b48c6bf33415e6d6cdae0b.tar.xz
(svn r18563) -Document: some industry related functions
Diffstat (limited to 'src/industry_map.h')
-rw-r--r--src/industry_map.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/industry_map.h b/src/industry_map.h
index e22934f14..1e07ca072 100644
--- a/src/industry_map.h
+++ b/src/industry_map.h
@@ -119,6 +119,13 @@ static inline void SetIndustryConstructionStage(TileIndex tile, byte value)
SB(_m[tile].m1, 0, 2, value);
}
+/**
+ * Get the industry graphics ID for the given industry tile as
+ * stored in the without translation.
+ * @param t the tile to get the gfx for
+ * @pre IsTileType(t, MP_INDUSTRY)
+ * @return the gfx ID
+ */
static inline IndustryGfx GetCleanIndustryGfx(TileIndex t)
{
assert(IsTileType(t, MP_INDUSTRY));