diff options
author | fonsinchen <fonsinchen@openttd.org> | 2013-06-09 13:04:32 +0000 |
---|---|---|
committer | fonsinchen <fonsinchen@openttd.org> | 2013-06-09 13:04:32 +0000 |
commit | 741c431caa59670bbe53740cc8a864992ce1bbd2 (patch) | |
tree | 42e4ab0bb88bb7afa969a268dc03dbe4b611a41b /src/station_base.h | |
parent | 04e3eb6fabc0e4aff04c189368356b8af15e9655 (diff) | |
download | openttd-741c431caa59670bbe53740cc8a864992ce1bbd2.tar.xz |
(svn r25362) -Feature: consider cargo waiting at other stations for rating at the origin station
Diffstat (limited to 'src/station_base.h')
-rw-r--r-- | src/station_base.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/station_base.h b/src/station_base.h index b83c044a2..1eb5e0422 100644 --- a/src/station_base.h +++ b/src/station_base.h @@ -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. |