diff options
author | Darkvater <darkvater@openttd.org> | 2006-03-26 22:23:32 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2006-03-26 22:23:32 +0000 |
commit | d5909f901a8558dbfc562c75a387d66251c6ed20 (patch) | |
tree | 2a31936844a550db9aea12a9b2645bfd4e7e7fa2 /industry_cmd.c | |
parent | 76f1609ee165bfe66a5250144ced8654e28e36ff (diff) | |
download | openttd-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.c | 6 |
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); |