Merge pull request #917 from saiarcot895/fix-lane-counting

Fix error caused by missing lane tags.
This commit is contained in:
vshcherb 2014-10-14 14:51:54 +02:00
commit 7ab39cb7f2

View file

@ -577,7 +577,9 @@ public class RouteResultPreparation {
if(attached.getObject().getOneway() == 0) {
lns = countLanes(attached, lns);
}
if (lns > 0) {
if (lns <= 0) {
right += 1;
} else {
right += lns;
}
speak = speak || rsSpeakPriority <= speakPriority;
@ -587,7 +589,9 @@ public class RouteResultPreparation {
if(attached.getObject().getOneway() == 0) {
lns = countLanes(attached, lns);
}
if (lns > 0) {
if (lns <= 0) {
left += 1;
} else {
left += lns;
}
speak = speak || rsSpeakPriority <= speakPriority;