diff options
author | fonsinchen <fonsinchen@openttd.org> | 2014-05-01 14:50:52 +0000 |
---|---|---|
committer | fonsinchen <fonsinchen@openttd.org> | 2014-05-01 14:50:52 +0000 |
commit | 11d98f043e96b7b7d9a2f97b5a7297b641f97c26 (patch) | |
tree | c9836afd3d8978a65c21387502facf184079aed6 /src/linkgraph/refresh.h | |
parent | b5566ae6ec928ee922a92efaae5b3f542cb62ddc (diff) | |
download | openttd-11d98f043e96b7b7d9a2f97b5a7297b641f97c26.tar.xz |
(svn r26549) -Change: better estimation for link capacities during full load
Diffstat (limited to 'src/linkgraph/refresh.h')
-rw-r--r-- | src/linkgraph/refresh.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/linkgraph/refresh.h b/src/linkgraph/refresh.h index 6f3f8f9b6..eac34266d 100644 --- a/src/linkgraph/refresh.h +++ b/src/linkgraph/refresh.h @@ -23,7 +23,7 @@ */ class LinkRefresher { public: - static void Run(Vehicle *v, bool allow_merge = true); + static void Run(Vehicle *v, bool allow_merge = true, bool is_full_loading = false); protected: /** @@ -88,8 +88,9 @@ protected: HopSet *seen_hops; ///< Hops already seen. If the same hop is seen twice we stop the algorithm. This is shared between all Refreshers of the same run. CargoID cargo; ///< Cargo given in last refit order. bool allow_merge; ///< If the refresher is allowed to merge or extend link graphs. + bool is_full_loading; ///< If the vehicle is full loading. - LinkRefresher(Vehicle *v, HopSet *seen_hops, bool allow_merge); + LinkRefresher(Vehicle *v, HopSet *seen_hops, bool allow_merge, bool is_full_loading); void HandleRefit(const Order *next); void ResetRefit(); |