Merge pull request #917 from saiarcot895/fix-lane-counting
Fix error caused by missing lane tags.
This commit is contained in:
commit
7ab39cb7f2
1 changed files with 6 additions and 2 deletions
|
@ -577,7 +577,9 @@ public class RouteResultPreparation {
|
||||||
if(attached.getObject().getOneway() == 0) {
|
if(attached.getObject().getOneway() == 0) {
|
||||||
lns = countLanes(attached, lns);
|
lns = countLanes(attached, lns);
|
||||||
}
|
}
|
||||||
if (lns > 0) {
|
if (lns <= 0) {
|
||||||
|
right += 1;
|
||||||
|
} else {
|
||||||
right += lns;
|
right += lns;
|
||||||
}
|
}
|
||||||
speak = speak || rsSpeakPriority <= speakPriority;
|
speak = speak || rsSpeakPriority <= speakPriority;
|
||||||
|
@ -587,7 +589,9 @@ public class RouteResultPreparation {
|
||||||
if(attached.getObject().getOneway() == 0) {
|
if(attached.getObject().getOneway() == 0) {
|
||||||
lns = countLanes(attached, lns);
|
lns = countLanes(attached, lns);
|
||||||
}
|
}
|
||||||
if (lns > 0) {
|
if (lns <= 0) {
|
||||||
|
left += 1;
|
||||||
|
} else {
|
||||||
left += lns;
|
left += lns;
|
||||||
}
|
}
|
||||||
speak = speak || rsSpeakPriority <= speakPriority;
|
speak = speak || rsSpeakPriority <= speakPriority;
|
||||||
|
|
Loading…
Reference in a new issue