Compute obstaclesTime before adding final segment
Fix https://github.com/osmandapp/OsmAnd/issues/10867
This commit is contained in:
parent
49aab1eb21
commit
eab60bed46
1 changed files with 2 additions and 2 deletions
|
@ -457,10 +457,10 @@ public class BinaryRoutePlanner {
|
|||
directionAllowed = false;
|
||||
continue;
|
||||
}
|
||||
boolean alreadyVisited = checkIfOppositeSegmentWasVisited(ctx, reverseWaySearch, graphSegments, segment, oppositeSegments,
|
||||
segmentPoint, segmentDist, obstaclesTime);
|
||||
obstaclesTime += obstacle;
|
||||
obstaclesTime += heightObstacle;
|
||||
boolean alreadyVisited = checkIfOppositeSegmentWasVisited(ctx, reverseWaySearch, graphSegments, segment, oppositeSegments,
|
||||
segmentPoint, segmentDist, obstaclesTime);
|
||||
if (alreadyVisited) {
|
||||
directionAllowed = false;
|
||||
continue;
|
||||
|
|
Loading…
Reference in a new issue