small fix for bogus case
This commit is contained in:
parent
c6968269a1
commit
1296741b26
1 changed files with 4 additions and 1 deletions
|
@ -896,8 +896,11 @@ public class RouteResultPreparation {
|
|||
rs.keepRight = true;
|
||||
rs.leftLanes += lanes;
|
||||
}
|
||||
rs.speak = rs.speak || (rsSpeakPriority <= speakPriority));
|
||||
//if (rs.keepLeft && rs.keepRight) it probably means you have no action here to be announced here
|
||||
rs.speak = rs.speak || ((rsSpeakPriority <= speakPriority) && !(rs.keepLeft && rs.keepRight));
|
||||
if (rs.keepLeft && rs.keepRight) {
|
||||
rs.speak = false;
|
||||
}
|
||||
} else {
|
||||
if (attachedOnTheRight) {
|
||||
rs.addRoadsOnRight++;
|
||||
|
|
Loading…
Reference in a new issue