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 /economy.h | |
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 'economy.h')
-rw-r--r-- | economy.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 */ |