(svn r6005) -Cleanup: introduce IndustryID and use it

-Cleanup: use TownID and StationID for two instances of uint16
This commit is contained in:
rubidium
2006-08-20 19:31:58 +00:00
parent db397d5a75
commit 43af0ced5f
6 changed files with 9 additions and 8 deletions

View File

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