(svn r25362) -Feature: consider cargo waiting at other stations for rating at the origin station

This commit is contained in:
fonsinchen
2013-06-09 13:04:32 +00:00
parent f022550df9
commit 1de46050f6
5 changed files with 74 additions and 19 deletions

View File

@@ -160,7 +160,8 @@ struct GoodsEntry {
last_speed(0),
last_age(255),
link_graph(INVALID_LINK_GRAPH),
node(INVALID_NODE)
node(INVALID_NODE),
max_waiting_cargo(0)
{}
byte acceptance_pickup; ///< Status of this cargo, see #GoodsEntryStatus.
@@ -197,6 +198,7 @@ struct GoodsEntry {
LinkGraphID link_graph; ///< Link graph this station belongs to.
NodeID node; ///< ID of node in link graph referring to this goods entry.
FlowStatMap flows; ///< Planned flows through this station.
uint max_waiting_cargo; ///< Max cargo from this station waiting at any station.
/**
* Reports whether a vehicle has ever tried to load the cargo at this station.