From e6a006458688da3c9ba0e480c3d86b0c2eda4338 Mon Sep 17 00:00:00 2001 From: sonora Date: Fri, 20 May 2016 11:24:22 +0200 Subject: [PATCH] add comment --- OsmAnd/src/net/osmand/plus/routing/VoiceRouter.java | 1 + 1 file changed, 1 insertion(+) diff --git a/OsmAnd/src/net/osmand/plus/routing/VoiceRouter.java b/OsmAnd/src/net/osmand/plus/routing/VoiceRouter.java index e34803a295..a32e8200aa 100644 --- a/OsmAnd/src/net/osmand/plus/routing/VoiceRouter.java +++ b/OsmAnd/src/net/osmand/plus/routing/VoiceRouter.java @@ -452,6 +452,7 @@ public class VoiceRouter { } NextDirectionInfo nextNextInfo = router.getNextRouteDirectionInfoAfter(nextInfo, new NextDirectionInfo(), !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)) { if (nextNextInfo.distanceTo < TURN_IN_DISTANCE_END && nextNextInfo != null) {