small fix for bogus case

This commit is contained in:
sonora 2016-05-24 01:59:47 +02:00
parent c6968269a1
commit 1296741b26

View file

@ -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++;