Corrected Direction of route
This commit is contained in:
parent
304f7b06a9
commit
e22a2b69df
@ -85,9 +85,9 @@ namespace astar
|
|||||||
if(!way.AccessPermitted())
|
if(!way.AccessPermitted())
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if(wayId.Value && way.GetDirection() == (fromStart ? WayDirection.Forwards : WayDirection.Backwards) && car)
|
if(wayId.Value && way.GetDirection() == (fromStart ? WayDirection.Backwards : WayDirection.Forwards) && car)
|
||||||
continue;
|
continue;
|
||||||
if(!wayId.Value && way.GetDirection() == (fromStart ? WayDirection.Backwards : WayDirection.Forwards) && car)
|
if(!wayId.Value && way.GetDirection() == (fromStart ? WayDirection.Forwards : WayDirection.Backwards) && car)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
Node neighborNode = graph.Nodes[neighborId];
|
Node neighborNode = graph.Nodes[neighborId];
|
||||||
|
Loading…
Reference in New Issue
Block a user