error on dynamic range

This commit is contained in:
afischerdev 2024-10-04 11:06:33 +02:00
parent 57726a36ce
commit 22842f0305
2 changed files with 12 additions and 14 deletions

View file

@ -981,13 +981,7 @@ public class RoutingEngine extends Thread {
logInfo("second check for way points");
resetCache(false);
range = -range;
List<MatchedWaypoint> tmp = new ArrayList<>();
// only w/o crosspoint check
for (MatchedWaypoint mwp: unmatchedWaypoints) {
if (mwp.crosspoint == null) tmp.add(mwp);
}
ok = nodesCache.matchWaypointsToNodes(tmp, range, islandNodePairs);
ok = nodesCache.matchWaypointsToNodes(unmatchedWaypoints, range, islandNodePairs);
}
if (!ok) {
for (MatchedWaypoint mwp :unmatchedWaypoints) {