From 8e32f53813d618fc104238f98dbbd392d740f12e Mon Sep 17 00:00:00 2001 From: namdre Date: Wed, 3 Apr 2019 10:48:24 +0200 Subject: [PATCH] avoiding dead-starts due to movement prohibitions. refs #5121 --- src/netbuild/NBEdge.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/netbuild/NBEdge.cpp b/src/netbuild/NBEdge.cpp index 4304944ec1c..c70f9b832a3 100644 --- a/src/netbuild/NBEdge.cpp +++ b/src/netbuild/NBEdge.cpp @@ -2744,7 +2744,12 @@ NBEdge::appendTurnaround(bool noTLSControlled, bool onlyDeadends, bool noGeometr } }; if (noGeometryLike && myTo->geometryLike() && out0 != nullptr) { - return; + // make sure the turnDestination has other incoming edges + EdgeVector turnIncoming = myTurnDestination->getIncomingEdges(); + if (turnIncoming.size() > 1) { + // this edge is always part of incoming + return; + } } setConnection(fromLane, myTurnDestination, toLane, L2L_VALIDATED); }