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
commit0c581f8361816980527dc648c81e81555e76857e (patch)
tree3610c8da20ebabb4bb90dc56bd553f2bf9df9fad /industry_map.h
parentd90be9212b5ed4c77e0d2478bb80e9459ab608dc (diff)
downloadopenttd-0c581f8361816980527dc648c81e81555e76857e.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);