From 47660b984b3c2eb80ac41e265b4cc9399300f0c2 Mon Sep 17 00:00:00 2001 From: smatz Date: Sun, 15 Nov 2009 21:06:13 +0000 Subject: (svn r18110) -Codechange [FS#3316]: search for stations nearby only once per producer (instead of once pre produced cargo type) (fonsinchen) --- src/economy_func.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/economy_func.h') diff --git a/src/economy_func.h b/src/economy_func.h index 38505d450..e4a77fb6a 100644 --- a/src/economy_func.h +++ b/src/economy_func.h @@ -21,6 +21,7 @@ #include "industry_type.h" #include "company_type.h" #include "station_type.h" +#include "station_func.h" void ResetPriceBaseMultipliers(); void SetPriceBaseMultiplier(Price price, int factor); @@ -35,7 +36,7 @@ int UpdateCompanyRatingAndValue(Company *c, bool update); void StartupIndustryDailyChanges(bool init_counter); Money GetTransportedGoodsIncome(uint num_pieces, uint dist, byte transit_days, CargoID cargo_type); -uint MoveGoodsToStation(TileIndex tile, int w, int h, CargoID type, uint amount, SourceType source_type, SourceID source_id); +uint MoveGoodsToStation(CargoID type, uint amount, SourceType source_type, SourceID source_id, const StationList *all_stations); void PrepareUnload(Vehicle *front_v); void LoadUnloadStation(Station *st); -- cgit v1.2.3-54-g00ecf