This commit is contained in:
Victor Shcherb 2017-10-18 13:59:10 +02:00
parent da81464597
commit ba7c11a25d

View file

@ -1429,16 +1429,16 @@ public class RouteResultPreparation {
} }
} }
} }
// remove all non-slight turns // remove all non-slight turns // TEST don't pass
if(possibleTurns.size() > 1) { // if(possibleTurns.size() > 1) {
TIntIterator it = possibleTurns.iterator(); // TIntIterator it = possibleTurns.iterator();
while(it.hasNext()) { // while(it.hasNext()) {
int nxt = it.next(); // int nxt = it.next();
if(!TurnType.isSlightTurn(nxt)) { // if(!TurnType.isSlightTurn(nxt)) {
it.remove(); // it.remove();
} // }
} // }
} // }
int infer = 0; int infer = 0;
if (possibleTurns.size() == 1) { if (possibleTurns.size() == 1) {
infer = possibleTurns.iterator().next(); infer = possibleTurns.iterator().next();