summaryrefslogtreecommitdiff
path: root/src/economy_func.h
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-11-15 21:06:13 +0000
committersmatz <smatz@openttd.org>2009-11-15 21:06:13 +0000
commit47660b984b3c2eb80ac41e265b4cc9399300f0c2 (patch)
treec1e81a6e2e338a84bf92264e3fd2bf9a8cdcb2ca /src/economy_func.h
parente41c2e128bb8177613d664eddee9f7396d6ae842 (diff)
downloadopenttd-47660b984b3c2eb80ac41e265b4cc9399300f0c2.tar.xz
(svn r18110) -Codechange [FS#3316]: search for stations nearby only once per producer (instead of once pre produced cargo type) (fonsinchen)
Diffstat (limited to 'src/economy_func.h')
-rw-r--r--src/economy_func.h3
1 files changed, 2 insertions, 1 deletions
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);