From b1e2ae44d6564709c0947319849a4928f0d0f949 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 20 Aug 2006 19:31:58 +0000 Subject: (svn r6005) -Cleanup: introduce IndustryID and use it -Cleanup: use TownID and StationID for two instances of uint16 --- industry_map.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'industry_map.h') diff --git a/industry_map.h b/industry_map.h index db9e1a0d3..5486a1528 100644 --- a/industry_map.h +++ b/industry_map.h @@ -28,7 +28,7 @@ enum { GFX_TOY_FACTORY = 143 }; -static inline uint GetIndustryIndex(TileIndex t) +static inline IndustryID GetIndustryIndex(TileIndex t) { assert(IsTileType(t, MP_INDUSTRY)); return _m[t].m2; @@ -95,7 +95,7 @@ static inline void SetIndustryGfx(TileIndex t, IndustryGfx gfx) _m[t].m5 = gfx; } -static inline void MakeIndustry(TileIndex t, uint index, IndustryGfx gfx) +static inline void MakeIndustry(TileIndex t, IndustryID index, IndustryGfx gfx) { SetTileType(t, MP_INDUSTRY); _m[t].m1 = 0; -- cgit v1.2.3-54-g00ecf