static int
route_check_roundabout(struct route_graph_segment *seg, int level, int direction, struct route_graph_segment *origin)
{
- struct route_graph_point_iterator it;
+ struct route_graph_point_iterator it,it2;
struct route_graph_segment *cur;
+ int count=0;
if (!level) {
return 0;
} else {
it = rp_iterator_new(seg->start);
}
+ it2=it;
+
+ while ((cur = rp_iterator_next(&it2)))
+ count++;
+ if (count > 3)
+ return 0;
cur = rp_iterator_next(&it);
while (cur) {
if (cur == seg) {
/* We check if the route graph segment is part of a roundabout here, because this
* only matters for route graph segments which form parts of the route path */
if (!(rgs->flags & AF_ROUNDABOUT)) { // We identified this roundabout earlier
-#if 0
route_check_roundabout(rgs, 5, (dir < 1), NULL);
-#endif
}
segment->item=rgs->item;