Adjust speed if not priority road

This commit is contained in:
glax 2024-07-25 02:26:42 +02:00
parent 2cf7bf4701
commit be4f19c4bb

View File

@ -109,6 +109,8 @@ namespace astar
continue;
if(!way.AccessPermitted())
continue;
if (car && !way.IsPriorityRoad())
speed = (byte)(speed * 0.75f);
if(wayId.Value && way.GetDirection() == (fromStart ? WayDirection.Backwards : WayDirection.Forwards) && car)
continue;