(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

@@ -21,7 +21,7 @@ typedef struct {
VARDEF Economy _economy;
typedef struct Subsidy {
byte cargo_type;
CargoID cargo_type;
byte age;
uint16 from;
uint16 to;
@@ -64,7 +64,7 @@ Pair SetupSubsidyDecodeParam(const Subsidy* s, bool mode);
void DeleteSubsidyWithIndustry(uint16 index);
void DeleteSubsidyWithStation(uint16 index);
int32 GetTransportedGoodsIncome(uint num_pieces, uint dist, byte transit_days, byte cargo_type);
int32 GetTransportedGoodsIncome(uint num_pieces, uint dist, byte transit_days, CargoID cargo_type);
uint MoveGoodsToStation(TileIndex tile, int w, int h, int type, uint amount);
#endif /* ECONOMY_H */