Skip to content

Commit

Permalink
fix #14554
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Mar 20, 2024
1 parent 7edeab8 commit f2d1220
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/microsim/traffic_lights/MSRailSignal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1343,6 +1343,15 @@ MSRailSignal::DriveWay::buildRoute(MSLink* origin, double length,
if (next != end) {
// no connection found, jump to next route edge
toLane = (*next)->getLanes()[0];
if (toLane->getEdge().getBidiEdge() == current) {
#ifdef DEBUG_DRIVEWAY_BUILDROUTE
if (gDebugFlag4) {
std::cout << " abort: turn-around\n";
}
#endif
myFoundReversal = true;
return;
}
} else {
#ifdef DEBUG_DRIVEWAY_BUILDROUTE
if (gDebugFlag4) {
Expand Down

0 comments on commit f2d1220

Please sign in to comment.