Преглед на файлове

change tool/map_lanetoxodr.fix straight contact error.

yuchuli преди 3 години
родител
ревизия
76fb34f064
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      src/tool/map_lanetoxodr/autoroadcontact.cpp

+ 2 - 2
src/tool/map_lanetoxodr/autoroadcontact.cpp

@@ -88,7 +88,7 @@ int AutoRoadContact::CalcContact(Road *pRoad1, Road *pRoad2,int & contacttype,in
         from_hdg = road1_end_hdg ;
         to_hdg = road2_start_hdg;
         pLS1 = pRoad1->GetLastLaneSection();
-        pLS2 = pRoad1->GetLaneSection(0);
+        pLS2 = pRoad2->GetLaneSection(0);
         break;
     case 3:
         from_x = road1_end_x;
@@ -98,7 +98,7 @@ int AutoRoadContact::CalcContact(Road *pRoad1, Road *pRoad2,int & contacttype,in
         from_hdg = road1_end_hdg ;
         to_hdg = road2_end_hdg + M_PI;
         pLS1 = pRoad1->GetLastLaneSection();
-        pLS2 = pRoad1->GetLastLaneSection();
+        pLS2 = pRoad2->GetLastLaneSection();
         break;
     default:
         break;