diff options
author | frosch <frosch@openttd.org> | 2009-09-06 18:53:57 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2009-09-06 18:53:57 +0000 |
commit | 438a429549486f08919748cee0f5346ccacf760b (patch) | |
tree | 3858342b95e237dcb97d35476646e0d0f9d23aeb /src/economy_func.h | |
parent | 2ce1a608a8ff5eb4cd6582adac990b2004ce1103 (diff) | |
download | openttd-438a429549486f08919748cee0f5346ccacf760b.tar.xz |
(svn r17433) -Codechange: Store cumulated inflation in savegame and compute all prices from that instead of storing all prices separately.
Note: Savegame conversion computes the inflation from max loan. Prices from modified savegames will get lost. TTO savegames will also behave slightly different.
-Change: NewGRF price modifiers now take effect everytime when loading NewGRFs instead of once on gamestart.
Diffstat (limited to 'src/economy_func.h')
-rw-r--r-- | src/economy_func.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/economy_func.h b/src/economy_func.h index 3e2c97e7c..2c66d5506 100644 --- a/src/economy_func.h +++ b/src/economy_func.h @@ -24,16 +24,12 @@ void ResetPriceBaseMultipliers(); void SetPriceBaseMultiplier(uint price, byte factor); -void ResetEconomy(); extern const ScoreInfo _score_info[]; extern int _score_part[MAX_COMPANIES][SCORE_END]; extern Economy _economy; /* Prices and also the fractional part. */ extern Prices _price; -extern uint16 _price_frac[NUM_PRICES]; -extern Money _cargo_payment_rates[NUM_CARGO]; -extern uint16 _cargo_payment_rates_frac[NUM_CARGO]; int UpdateCompanyRatingAndValue(Company *c, bool update); void StartupIndustryDailyChanges(bool init_counter); @@ -46,4 +42,8 @@ void LoadUnloadStation(Station *st); Money GetPriceByIndex(uint8 index); +void InitializeEconomy(); +void RecomputePrices(); +void AddInflation(bool check_year = true); + #endif /* ECONOMY_FUNC_H */ |