(svn r25903) -Codechange: Refactor RefreshNextHopsStats into an own class LinkRefresher.

This commit is contained in:
fonsinchen
2013-10-22 18:34:10 +00:00
parent e0f547e694
commit 6e1cc80926
9 changed files with 32 additions and 205 deletions

View File

@@ -51,6 +51,7 @@
#include "newgrf_house.h"
#include "company_gui.h"
#include "linkgraph/linkgraph_base.h"
#include "linkgraph/refresh.h"
#include "widgets/station_widget.h"
#include "table/strings.h"
@@ -3446,7 +3447,7 @@ void DeleteStaleLinks(Station *from)
* - We could try to figure out if we've seen a consist with the same cargo on the
* same list already and if the consist can actually carry the cargo we're looking
* for. With conditional and refit orders this is not quite trivial, though. */
v->RefreshNextHopsStats();
LinkRefresher::Run(v);
if (edge.LastUpdate() == _date) updated = true;
}
if (updated) break;