Skip to content

Commit

Permalink
Hotfix: Cable cars are unable to turn around at end-of-line stations
Browse files Browse the repository at this point in the history
  • Loading branch information
VictorPhilipp committed May 28, 2017
1 parent d335327 commit 8df4524
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions TLM/TLM/Custom/PathFinding/CustomPathFind.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1032,6 +1032,7 @@ private void ProcessItemMain(uint unitId, BufferItem item, ref NetSegment prevSe
bool explorePrevSegment = false;
bool isStrictLaneArrowPolicyEnabled = false;
bool handleStockUturn = (this._vehicleTypes & VehicleInfo.VehicleType.Tram) == VehicleInfo.VehicleType.None;
bool stockUturn = (nextNode.m_flags & (NetNode.Flags.End | NetNode.Flags.OneWayOut)) != NetNode.Flags.None;

if (prevLaneEndRouting.routed) {
bool prevIsOutgoingOneWay = nextIsStartNode ? prevSegmentRouting.startNodeOutgoingOneWay : prevSegmentRouting.endNodeOutgoingOneWay;
Expand Down Expand Up @@ -1110,8 +1111,6 @@ private void ProcessItemMain(uint unitId, BufferItem item, ref NetSegment prevSe
#endif
}

bool stockUturn = false;

if (allowPedestrians || !prevLaneEndRouting.routed) {
/* pedestrian to bicycle switch or no routing information available */

Expand Down

0 comments on commit 8df4524

Please sign in to comment.