From 741c431caa59670bbe53740cc8a864992ce1bbd2 Mon Sep 17 00:00:00 2001 From: fonsinchen Date: Sun, 9 Jun 2013 13:04:32 +0000 Subject: (svn r25362) -Feature: consider cargo waiting at other stations for rating at the origin station --- src/station_base.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/station_base.h') 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. -- cgit v1.2.3-54-g00ecf