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