(svn r4128) - CodeChange: Add proper semantics for CargoID for such variables instead of using the general byte-type.

This commit is contained in:
Darkvater
2006-03-26 22:23:32 +00:00
parent 76f1609ee1
commit d5909f901a
14 changed files with 39 additions and 38 deletions

View File

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