Compare commits
2 Commits
19cee604de
...
e22a2b69df
Author | SHA1 | Date | |
---|---|---|---|
e22a2b69df | |||
304f7b06a9 |
@ -82,10 +82,12 @@ namespace astar
|
|||||||
byte speed = SpeedHelper.GetSpeed(way, car);
|
byte speed = SpeedHelper.GetSpeed(way, car);
|
||||||
if(speed < 1)
|
if(speed < 1)
|
||||||
continue;
|
continue;
|
||||||
|
if(!way.AccessPermitted())
|
||||||
if(wayId.Value && way.GetDirection() == (fromStart ? WayDirection.Forwards : WayDirection.Backwards) && car)
|
|
||||||
continue;
|
continue;
|
||||||
if(!wayId.Value && way.GetDirection() == (fromStart ? WayDirection.Backwards : WayDirection.Forwards) && car)
|
|
||||||
|
if(wayId.Value && way.GetDirection() == (fromStart ? WayDirection.Backwards : WayDirection.Forwards) && car)
|
||||||
|
continue;
|
||||||
|
if(!wayId.Value && way.GetDirection() == (fromStart ? WayDirection.Forwards : WayDirection.Backwards) && car)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
Node neighborNode = graph.Nodes[neighborId];
|
Node neighborNode = graph.Nodes[neighborId];
|
||||||
|
Loading…
Reference in New Issue
Block a user