summaryrefslogtreecommitdiff
path: root/economy.h
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2004-12-28 17:40:15 +0000
committertruelight <truelight@openttd.org>2004-12-28 17:40:15 +0000
commite6a59be8c03998195cb87592231399fb5786234b (patch)
treefa334ac69546d4d32a85202264818ed9fd45b3f5 /economy.h
parentc4d073a4dedb9c8eca7b25a226703833b04c0266 (diff)
downloadopenttd-e6a59be8c03998195cb87592231399fb5786234b.tar.xz
(svn r1291) -Codechange: prepared subsidies and towns to become an uint16 (happens
after savegame bump)
Diffstat (limited to 'economy.h')
-rw-r--r--economy.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/economy.h b/economy.h
index 36ac2247e..9ca38b1b9 100644
--- a/economy.h
+++ b/economy.h
@@ -18,8 +18,8 @@ VARDEF Economy _economy;
typedef struct Subsidy {
byte cargo_type;
byte age;
- byte from;
- byte to;
+ uint16 from;
+ uint16 to;
} Subsidy;
@@ -68,8 +68,8 @@ void UpdatePlayerHouse(Player *p, uint score);
VARDEF Subsidy _subsidies[MAX_PLAYERS];
Pair SetupSubsidyDecodeParam(Subsidy *s, bool mode);
-void DeleteSubsidyWithIndustry(byte index);
-void DeleteSubsidyWithStation(byte index);
+void DeleteSubsidyWithIndustry(uint16 index);
+void DeleteSubsidyWithStation(uint16 index);
void RemoteSubsidyAdd(Subsidy *s_new);
int32 GetTransportedGoodsIncome(uint num_pieces, uint dist, byte transit_days, byte cargo_type);