Add PermissiveAccess Checks
This commit is contained in:
parent
19cee604de
commit
304f7b06a9
@ -82,6 +82,8 @@ 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())
|
||||||
|
continue;
|
||||||
|
|
||||||
if(wayId.Value && way.GetDirection() == (fromStart ? WayDirection.Forwards : WayDirection.Backwards) && car)
|
if(wayId.Value && way.GetDirection() == (fromStart ? WayDirection.Forwards : WayDirection.Backwards) && car)
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user