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 | b1e2ae44d6564709c0947319849a4928f0d0f949 (patch) | |
tree | 8eb8f1e784da94913d07088d379166bcfad418da /industry_cmd.c | |
parent | 893d4ba9d4040b098bc6e0ac04068cda8ff608a2 (diff) | |
download | openttd-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_cmd.c')
-rw-r--r-- | industry_cmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/industry_cmd.c b/industry_cmd.c index e614a6b52..cdabc032c 100644 --- a/industry_cmd.c +++ b/industry_cmd.c @@ -811,7 +811,7 @@ static void SetupFarmFieldFence(TileIndex tile, int size, byte type, Axis direct } while (--size); } -static void PlantFarmField(TileIndex tile, uint16 industry) +static void PlantFarmField(TileIndex tile, IndustryID industry) { uint size_x, size_y; uint32 r; @@ -1404,7 +1404,7 @@ static Industry *AllocateIndustry(void) FOR_ALL_INDUSTRIES(i) { if (i->xy == 0) { - uint index = i->index; + IndustryID index = i->index; if (i->index > _total_industries) _total_industries = i->index; |