diff --git a/astar/Astar.cs b/astar/Astar.cs index a92659a..9e665bb 100644 --- a/astar/Astar.cs +++ b/astar/Astar.cs @@ -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;