Skip to content

Commit

Permalink
avoiding dead-starts due to movement prohibitions. refs #5121
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Apr 3, 2019
1 parent 2751510 commit 8e32f53
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/netbuild/NBEdge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 8e32f53

Please sign in to comment.