From 87d8ddfcee36aa6e4349b96357c5f300091618bd Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Fri, 15 Apr 2016 11:08:38 +0200 Subject: [PATCH] Update turn type --- OsmAnd-java/src/net/osmand/router/TurnType.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd-java/src/net/osmand/router/TurnType.java b/OsmAnd-java/src/net/osmand/router/TurnType.java index 776d98485a..582f4933f7 100644 --- a/OsmAnd-java/src/net/osmand/router/TurnType.java +++ b/OsmAnd-java/src/net/osmand/router/TurnType.java @@ -181,7 +181,7 @@ public class TurnType { public static int getSecondaryTurn(int laneValue) { // Get the secondary turn modifier for the lane - return (laneValue >> 5); + return (laneValue >> 5) & ((1 << 5) - 1); } public static void setPrimaryTurnShiftOthers(int[] lanes, int lane, int turnType) {