summaryrefslogtreecommitdiff
path: root/industry_map.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2006-08-20 19:31:58 +0000
committerrubidium <rubidium@openttd.org>2006-08-20 19:31:58 +0000
commitb1e2ae44d6564709c0947319849a4928f0d0f949 (patch)
tree8eb8f1e784da94913d07088d379166bcfad418da /industry_map.h
parent893d4ba9d4040b098bc6e0ac04068cda8ff608a2 (diff)
downloadopenttd-b1e2ae44d6564709c0947319849a4928f0d0f949.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.h4
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;