summaryrefslogtreecommitdiff
path: root/industry_map.h
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-03-25 10:38:28 +0000
committertron <tron@openttd.org>2006-03-25 10:38:28 +0000
commita77e3bd85586f4c4f835c0a69c2c6a2c79307c5d (patch)
tree3610c8da20ebabb4bb90dc56bd553f2bf9df9fad /industry_map.h
parent84a824212b6da18aeb53664a87ebcdd3baccaddd (diff)
downloadopenttd-a77e3bd85586f4c4f835c0a69c2c6a2c79307c5d.tar.xz
(svn r4108) Add [GS]etIndustryGfx()
Diffstat (limited to 'industry_map.h')
-rw-r--r--industry_map.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/industry_map.h b/industry_map.h
index d3646cd95..f42d11833 100644
--- a/industry_map.h
+++ b/industry_map.h
@@ -22,6 +22,17 @@ static inline bool IsIndustryCompleted(TileIndex tile)
}
+static inline uint GetIndustryGfx(TileIndex t)
+{
+ return _m[t].m5;
+}
+
+static inline void SetIndustryGfx(TileIndex t, uint gfx)
+{
+ _m[t].m5 = gfx;
+}
+
+
static inline void MakeIndustry(TileIndex t, uint index, uint gfx)
{
SetTileType(t, MP_INDUSTRY);