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