quick fix

This commit is contained in:
MadWasp79 2020-06-24 13:29:14 +03:00
parent b7961d07d5
commit 578835df55

View file

@ -373,9 +373,6 @@ public class GeneralRouter implements VehicleRouter {
@Override
public float defineRoutingObstacle(RouteDataObject road, int point, boolean dir) {
int[] pointTypes = road.getPointTypes(point);
if (pointTypes != null) {
}
if(pointTypes != null) {
Float obst = getCache(RouteDataObjectAttribute.ROUTING_OBSTACLES, road.region, pointTypes, dir);
if(obst == null) {
@ -410,7 +407,7 @@ public class GeneralRouter implements VehicleRouter {
if ((pointTypes[i] == road.region.stopSign || pointTypes[i] == road.region.giveWaySign)
&& direction == wayOppositeDirection) {
skip = true;
} else if (pointTypes[i] == road.region.trafficSignals && direction == wayOppositeDirection) {
} else if (pointTypes[i] == road.region.trafficSignals && tdirection == wayOppositeDirection) {
skip = true;
}
if (!skip) {