From de667f61a49219fa8ebbf8ef185bd00e0abe85f3 Mon Sep 17 00:00:00 2001 From: Sergi Hernandez Juan <shernand@iri.upc.edu> Date: Thu, 7 Sep 2023 17:06:07 +0200 Subject: [PATCH] Removed the through restriction from road segments. --- src/osm/osm_road_segment.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/osm/osm_road_segment.cpp b/src/osm/osm_road_segment.cpp index 851c488..d2fd304 100644 --- a/src/osm/osm_road_segment.cpp +++ b/src/osm/osm_road_segment.cpp @@ -308,8 +308,8 @@ void COSMRoadSegment::convert(CRoad **left_road,CRoad **right_road,double resolu for(unsigned int k=0;k<j;k++) segment->unlink_lanes(j,k); } - if(restrictions&RESTRICTION_THROUGH) - segment->unlink_lanes(j,j); +// if(restrictions&RESTRICTION_THROUGH) +// segment->unlink_lanes(j,j); } } } @@ -340,8 +340,8 @@ void COSMRoadSegment::convert(CRoad **left_road,CRoad **right_road,double resolu for(unsigned int k=0;k<j;k++) segment->unlink_lanes(j,k); } - if(restrictions&RESTRICTION_THROUGH) - segment->unlink_lanes(j,j); +// if(restrictions&RESTRICTION_THROUGH) +// segment->unlink_lanes(j,j); } } } -- GitLab