diff options
author | tron <tron@openttd.org> | 2006-03-25 10:38:28 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-03-25 10:38:28 +0000 |
commit | 0c581f8361816980527dc648c81e81555e76857e (patch) | |
tree | 3610c8da20ebabb4bb90dc56bd553f2bf9df9fad /industry_map.h | |
parent | d90be9212b5ed4c77e0d2478bb80e9459ab608dc (diff) | |
download | openttd-0c581f8361816980527dc648c81e81555e76857e.tar.xz |
(svn r4108) Add [GS]etIndustryGfx()
Diffstat (limited to 'industry_map.h')
-rw-r--r-- | industry_map.h | 11 |
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); |