Skip to content
New issue

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

IterateNodeSegments sometimes does not work. Fixes #549 #550

Merged
merged 2 commits into from
Nov 14, 2019

Conversation

kianzarrin
Copy link
Collaborator

@kianzarrin kianzarrin commented Nov 12, 2019

Fixes #549 . See the issue for full dets.
I tested this and it works. Here is how I tested it:
This bug was breaking my roundabout detection. With this patch my roundabout detection works again.

Copy link
Member

@krzychu124 krzychu124 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.
When new node is created, (internally)game is attaching each new segment to first empty m_segmentX field it finds (with 0 value) where X is number 0-7

BTW, you can modify description to ' Fixes #549 ' to make Github automatically close issue when pull request will be merged 😉

@kianzarrin kianzarrin changed the title IterateNodeSegments sometimes does not work #549 IterateNodeSegments sometimes does not work. Fixes #549 Nov 13, 2019
Copy link
Member

@krzychu124 krzychu124 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Merging...

@krzychu124 krzychu124 added this to the 11.0 milestone Nov 14, 2019
@krzychu124 krzychu124 added BUG Defect detected confirmed Represents confirmed issue or bug labels Nov 14, 2019
@krzychu124 krzychu124 merged commit ec41c68 into CitiesSkylinesMods:master Nov 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BUG Defect detected confirmed Represents confirmed issue or bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IterateNodeSegments sometimes does not work
3 participants