diff options
author | frosch <frosch@openttd.org> | 2009-11-24 13:12:34 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2009-11-24 13:12:34 +0000 |
commit | 912bce0b8cdeca9849dd257ca95566b009719d53 (patch) | |
tree | a2abd63725a9c6baffb22a8b3c39dc6b2f535dfb /src/economy_func.h | |
parent | b6b551533532d64f47e883d770b9633027ca7628 (diff) | |
download | openttd-912bce0b8cdeca9849dd257ca95566b009719d53.tar.xz |
(svn r18266) -Codechange: Add a function to compute prices from price base and cost factor and use it consistently for vehicle purchase, running cost, and refit cost.
Diffstat (limited to 'src/economy_func.h')
-rw-r--r-- | src/economy_func.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/economy_func.h b/src/economy_func.h index e4a77fb6a..ad50971eb 100644 --- a/src/economy_func.h +++ b/src/economy_func.h @@ -41,7 +41,7 @@ uint MoveGoodsToStation(CargoID type, uint amount, SourceType source_type, Sourc void PrepareUnload(Vehicle *front_v); void LoadUnloadStation(Station *st); -Money GetPriceByIndex(Price index); +Money GetPrice(Price index, uint cost_factor, int shift = 0); void InitializeEconomy(); void RecomputePrices(); |