Add PermissiveAccess Checks
This commit is contained in:
parent
19cee604de
commit
304f7b06a9
@ -82,6 +82,8 @@ namespace astar
|
||||
byte speed = SpeedHelper.GetSpeed(way, car);
|
||||
if(speed < 1)
|
||||
continue;
|
||||
if(!way.AccessPermitted())
|
||||
continue;
|
||||
|
||||
if(wayId.Value && way.GetDirection() == (fromStart ? WayDirection.Forwards : WayDirection.Backwards) && car)
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user