(svn r26891) -Codechange: Add methods to retrieve flows from a FlowStatMap
This commit is contained in:
@@ -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]);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user