Adjust speed if not priority road
This commit is contained in:
parent
2cf7bf4701
commit
be4f19c4bb
@ -109,6 +109,8 @@ namespace astar
|
|||||||
continue;
|
continue;
|
||||||
if(!way.AccessPermitted())
|
if(!way.AccessPermitted())
|
||||||
continue;
|
continue;
|
||||||
|
if (car && !way.IsPriorityRoad())
|
||||||
|
speed = (byte)(speed * 0.75f);
|
||||||
|
|
||||||
if(wayId.Value && way.GetDirection() == (fromStart ? WayDirection.Backwards : WayDirection.Forwards) && car)
|
if(wayId.Value && way.GetDirection() == (fromStart ? WayDirection.Backwards : WayDirection.Forwards) && car)
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user