Add PermissiveAccess Checks

This commit is contained in:
glax 2024-07-24 00:23:06 +02:00
parent 19cee604de
commit 304f7b06a9

View File

@ -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;