fix looping in sliproad handler for lanes

This commit is contained in:
Moritz Kobitzsch
2016-09-12 10:08:01 +02:00
parent e3c1b133bf
commit b3c5a9c010
3 changed files with 17 additions and 4 deletions
+2 -1
View File
@@ -94,7 +94,8 @@ Intersection TurnAnalysis::assignTurnTypes(const NodeID from_nid,
}
}
// Handle sliproads
intersection = sliproad_handler(from_nid, via_eid, std::move(intersection));
if (sliproad_handler.canProcess(from_nid, via_eid, intersection))
intersection = sliproad_handler(from_nid, via_eid, std::move(intersection));
// Turn On Ramps Into Off Ramps, if we come from a motorway-like road
if (node_based_graph.GetEdgeData(via_eid).road_classification.IsMotorwayClass())