|
1 | | -namespace TrafficManager.Manager.Impl { |
| 1 | +namespace TrafficManager.Manager.Impl { |
2 | 2 | using System; |
3 | 3 | using System.Collections.Generic; |
4 | 4 | using System.Linq; |
@@ -419,7 +419,7 @@ protected void RecalculateLaneEndRoutingData(ushort segmentId, |
419 | 419 | return true; |
420 | 420 | }); |
421 | 421 |
|
422 | | - bool leftHandDrive = Constants.ServiceFactory.SimulationService.LeftHandDrive; |
| 422 | + bool lht = Constants.ServiceFactory.SimulationService.TrafficDrivesOnLeft; |
423 | 423 |
|
424 | 424 | IExtSegmentEndManager segEndMan = Constants.ManagerFactory.ExtSegmentEndManager; |
425 | 425 | ExtSegment prevSeg = Constants.ManagerFactory.ExtSegmentManager.ExtSegments[segmentId]; |
@@ -549,7 +549,7 @@ protected void RecalculateLaneEndRoutingData(ushort segmentId, |
549 | 549 | Log._DebugFormat( |
550 | 550 | "RoutingManager.RecalculateLaneEndRoutingData({0}, {1}, {2}, {3}): " + |
551 | 551 | "prevSegIsInverted={4} leftHandDrive={5}", |
552 | | - segmentId, laneIndex, laneId, startNode, prevSegIsInverted, leftHandDrive); |
| 552 | + segmentId, laneIndex, laneId, startNode, prevSegIsInverted, lht); |
553 | 553 | Log._DebugFormat( |
554 | 554 | "RoutingManager.RecalculateLaneEndRoutingData({0}, {1}, {2}, {3}): " + |
555 | 555 | "prevSimilarLaneCount={4} prevInnerSimilarLaneIndex={5} prevOuterSimilarLaneIndex={6} " + |
@@ -870,8 +870,8 @@ protected void RecalculateLaneEndRoutingData(ushort segmentId, |
870 | 870 | (nextIncomingDir == ArrowDirection.Turn |
871 | 871 | && (!nextIsRealJunction |
872 | 872 | || nextIsEndOrOneWayOut |
873 | | - || ((leftHandDrive && hasRightArrow) |
874 | | - || (!leftHandDrive && hasLeftArrow))))) // valid turning lane |
| 873 | + || ((lht && hasRightArrow) |
| 874 | + || (!lht && hasLeftArrow))))) // valid turning lane |
875 | 875 | { |
876 | 876 | if (extendedLogRouting) { |
877 | 877 | Log._DebugFormat( |
@@ -1920,7 +1920,7 @@ bool laneChangesAllowed |
1920 | 1920 | Constants.ServiceFactory.NetService.ProcessSegment( |
1921 | 1921 | nextSegmentId, |
1922 | 1922 | (ushort nextSegId, ref NetSegment segment) => { |
1923 | | - nextSegmentId = Constants.ServiceFactory.SimulationService.LeftHandDrive |
| 1923 | + nextSegmentId = Constants.ServiceFactory.SimulationService.TrafficDrivesOnLeft |
1924 | 1924 | ? segment.GetLeftSegment(nextNodeId) |
1925 | 1925 | : segment.GetRightSegment(nextNodeId); |
1926 | 1926 | return true; |
|
0 commit comments