(svn r26891) -Codechange: Add methods to retrieve flows from a FlowStatMap

This commit is contained in:
fonsinchen
2014-09-21 16:19:52 +00:00
parent f56b8ba69e
commit 9fdb88962f
3 changed files with 49 additions and 8 deletions

View File

@@ -152,7 +152,7 @@ void LinkGraphOverlay::AddLinks(const Station *from, const Station *to)
ConstEdge edge = lg[ge.node][to->goods[c].node];
if (edge.Capacity() > 0) {
this->AddStats(lg.Monthly(edge.Capacity()), lg.Monthly(edge.Usage()),
ge.GetSumFlowVia(to->index), from->owner == OWNER_NONE || to->owner == OWNER_NONE,
ge.flows.GetFlowVia(to->index), from->owner == OWNER_NONE || to->owner == OWNER_NONE,
this->cached_links[from->index][to->index]);
}
}