When the roads are generated and the end up parallel to each other, we may see a case where one of the roads becomes a T-junction in an attempt to connect to the adjacent road. The connection doesn't happen, because the other road is already done processing.
There are multiple ways to solve this:
wait until all the road positions are known before running the connection algorithm
When the roads are generated and the end up parallel to each other, we may see a case where one of the roads becomes a T-junction in an attempt to connect to the adjacent road. The connection doesn't happen, because the other road is already done processing.
There are multiple ways to solve this: