Merge pull request #11171 from clementcontet/patch-1
Compute obstaclesTime before adding final segment
This commit is contained in:
commit
1ee2d1cc12
1 changed files with 2 additions and 2 deletions
|
@ -457,10 +457,10 @@ public class BinaryRoutePlanner {
|
||||||
directionAllowed = false;
|
directionAllowed = false;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
boolean alreadyVisited = checkIfOppositeSegmentWasVisited(ctx, reverseWaySearch, graphSegments, segment, oppositeSegments,
|
|
||||||
segmentPoint, segmentDist, obstaclesTime);
|
|
||||||
obstaclesTime += obstacle;
|
obstaclesTime += obstacle;
|
||||||
obstaclesTime += heightObstacle;
|
obstaclesTime += heightObstacle;
|
||||||
|
boolean alreadyVisited = checkIfOppositeSegmentWasVisited(ctx, reverseWaySearch, graphSegments, segment, oppositeSegments,
|
||||||
|
segmentPoint, segmentDist, obstaclesTime);
|
||||||
if (alreadyVisited) {
|
if (alreadyVisited) {
|
||||||
directionAllowed = false;
|
directionAllowed = false;
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in a new issue