summaryrefslogtreecommitdiff
path: root/industry_cmd.c
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2006-03-26 22:23:32 +0000
committerDarkvater <darkvater@openttd.org>2006-03-26 22:23:32 +0000
commitd5909f901a8558dbfc562c75a387d66251c6ed20 (patch)
tree2a31936844a550db9aea12a9b2645bfd4e7e7fa2 /industry_cmd.c
parent76f1609ee165bfe66a5250144ced8654e28e36ff (diff)
downloadopenttd-d5909f901a8558dbfc562c75a387d66251c6ed20.tar.xz
(svn r4128) - CodeChange: Add proper semantics for CargoID for such variables instead of using the general byte-type.
Diffstat (limited to 'industry_cmd.c')
-rw-r--r--industry_cmd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/industry_cmd.c b/industry_cmd.c
index 4fe8afe51..d7f3170f9 100644
--- a/industry_cmd.c
+++ b/industry_cmd.c
@@ -82,9 +82,9 @@ typedef struct IndustrySpec {
const IndustryTileTable *const *table;
byte num_table;
byte a,b,c;
- byte produced_cargo[2];
+ CargoID produced_cargo[2];
byte production_rate[2];
- byte accepts_cargo[3];
+ CargoID accepts_cargo[3];
byte check_proc;
} IndustrySpec;
@@ -858,7 +858,7 @@ static uint32 GetTileTrackStatus_Industry(TileIndex tile, TransportType mode)
return 0;
}
-static void GetProducedCargo_Industry(TileIndex tile, byte *b)
+static void GetProducedCargo_Industry(TileIndex tile, CargoID *b)
{
const Industry* i = GetIndustryByTile(tile);