improve handling of obvious for end-of-road situations

This commit is contained in:
Moritz Kobitzsch
2016-06-15 11:59:10 +02:00
committed by Patrick Niklaus
parent a28125ee9a
commit 4629a20fe4
4 changed files with 61 additions and 1 deletions
+3 -1
View File
@@ -180,7 +180,9 @@ Intersection TurnHandler::handleThreeWayTurn(const EdgeID via_edge, Intersection
I
I
*/
else if (isEndOfRoad(intersection[0], intersection[1], intersection[2]))
else if (isEndOfRoad(intersection[0], intersection[1], intersection[2]) &&
!isObviousOfTwo(intersection[1], intersection[2]) &&
!isObviousOfTwo(intersection[2], intersection[1]))
{
if (intersection[1].entry_allowed)
{