Adjust speed if not priority road
This commit is contained in:
parent
2cf7bf4701
commit
be4f19c4bb
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user