fix smaller issue with querying nextNextInfo
This commit is contained in:
parent
8460856d98
commit
a62cf81d6d
1 changed files with 1 additions and 1 deletions
|
@ -457,7 +457,7 @@ public class VoiceRouter {
|
|||
}
|
||||
}
|
||||
|
||||
NextDirectionInfo nextNextInfo = router.getNextRouteDirectionInfoAfter(nextInfo, new NextDirectionInfo(), !repeat);
|
||||
NextDirectionInfo nextNextInfo = router.getNextRouteDirectionInfoAfter(nextInfo, new NextDirectionInfo(), true); //I think "true" is correct here, not "!repeat"
|
||||
//Note: getNextRouteDirectionInfoAfter(nextInfo, x, y).distanceTo is distance from nextInfo, not from current position!
|
||||
|
||||
if ((repeat || statusNotPassed(STATUS_TURN)) && isDistanceLess(speed, dist, TURN_DISTANCE, TURN_DEFAULT_SPEED)) {
|
||||
|
|
Loading…
Reference in a new issue