try more sophisticated fix for 2571

This commit is contained in:
sonora 2016-05-24 01:26:13 +02:00
parent 00cb19cd9e
commit c6968269a1

View file

@ -896,7 +896,8 @@ 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));
} else {
if (attachedOnTheRight) {
rs.addRoadsOnRight++;