From 05bae48ef892b3205b3cfceadfe6f1871d3c6871 Mon Sep 17 00:00:00 2001 From: tron Date: Fri, 24 Mar 2006 13:31:17 +0000 Subject: (svn r4086) Add MakeIndustry() --- industry_map.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'industry_map.h') diff --git a/industry_map.h b/industry_map.h index c3a8d0b1c..63c289503 100644 --- a/industry_map.h +++ b/industry_map.h @@ -14,3 +14,14 @@ static inline Industry* GetIndustryByTile(TileIndex t) { return GetIndustry(GetIndustryIndex(t)); } + + +static inline void MakeIndustry(TileIndex t, uint index, uint gfx) +{ + SetTileType(t, MP_INDUSTRY); + _m[t].m1 = 0; + _m[t].m2 = index; + _m[t].m3 = 0; + _m[t].m4 = 0; + _m[t].m5 = gfx; +} -- cgit v1.2.3-54-g00ecf