From 912bce0b8cdeca9849dd257ca95566b009719d53 Mon Sep 17 00:00:00 2001 From: frosch Date: Tue, 24 Nov 2009 13:12:34 +0000 Subject: (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. --- src/economy_func.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/economy_func.h') 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(); -- cgit v1.2.3-54-g00ecf