Skip to content

Commit

Permalink
avoiding superfluous switch recordings for extended bidi. refs #7578
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Sep 10, 2024
1 parent 28f5108 commit f5c5cf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/microsim/traffic_lights/MSDriveWay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -981,7 +981,7 @@ MSDriveWay::buildRoute(const MSLink* origin, double length,
}
#endif
}
if (links.size() > 1) {
if (links.size() > 1 && !foundUnsafeSwitch) {
// switch on driveway
mySwitchDriveWays[link].push_back(this);
myForwardSwitches.push_back(link);
Expand Down

0 comments on commit f5c5cf7

Please sign in to comment.