We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following code assumes that node.m_segment0 always exits: (from https://github.com/krzychu124/Cities-Skylines-Traffic-Manager-President-Edition)
https://github.com/krzychu124/Cities-Skylines-Traffic-Manager-President-Edition/blob/ab806f57362a2db7decffdbb336da5b64b5cdc74/TLM/TLM/UI/SubTools/LaneConnectorTool.cs#L372 if ((sourceLaneMarker.SegmentIndex == 0) ^ (stayInLaneMode == StayInLaneMode.Backward)) { continue; }
Therefore when node.m_segment0 == 0 and the user tries to stay in lane only in one direction it will not work.
Reproduce:
Suggested fix: Find the smallest i where node.GetSegment(i) ~= 0 replace sourceLaneMarker.SegmentIndex == 0 with sourceLaneMarker.SegmentIndex == i
i
node.GetSegment(i) ~= 0
sourceLaneMarker.SegmentIndex == 0
sourceLaneMarker.SegmentIndex == i
The text was updated successfully, but these errors were encountered:
fixed CitiesSkylinesMods#618
34ecc71
Successfully merging a pull request may close this issue.
The following code assumes that node.m_segment0 always exits:
(from https://github.com/krzychu124/Cities-Skylines-Traffic-Manager-President-Edition)
Therefore when node.m_segment0 == 0 and the user tries to stay in lane only in one direction it will not work.
Reproduce:
Suggested fix:
Find the smallest
i
wherenode.GetSegment(i) ~= 0
replace
sourceLaneMarker.SegmentIndex == 0
withsourceLaneMarker.SegmentIndex == i
The text was updated successfully, but these errors were encountered: