(svn r4108) Add [GS]etIndustryGfx()

This commit is contained in:
tron
2006-03-25 10:38:28 +00:00
parent 84a824212b
commit a77e3bd855
2 changed files with 44 additions and 31 deletions

View File

@@ -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);