diff options
author | rubidium <rubidium@openttd.org> | 2006-08-20 19:31:58 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2006-08-20 19:31:58 +0000 |
commit | 43af0ced5f2135f840124c8fe269a8d802e529b9 (patch) | |
tree | 8eb8f1e784da94913d07088d379166bcfad418da /industry_map.h | |
parent | db397d5a758aa233bc06775caa4e48beb69d8f2d (diff) | |
download | openttd-43af0ced5f2135f840124c8fe269a8d802e529b9.tar.xz |
(svn r6005) -Cleanup: introduce IndustryID and use it
-Cleanup: use TownID and StationID for two instances of uint16
Diffstat (limited to 'industry_map.h')
-rw-r--r-- | industry_map.h | 4 |
1 files changed, 2 insertions, 2 deletions
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; |