whitespace and readability
This commit is contained in:
parent
73e7daffd7
commit
30b29aa25c
@ -140,6 +140,8 @@ public class Pathfinder
|
|||||||
|
|
||||||
double speed = regionManager.GetSpeedForEdge(currentNode, edge.wayId, _speedType);
|
double speed = regionManager.GetSpeedForEdge(currentNode, edge.wayId, _speedType);
|
||||||
|
|
||||||
|
double roadPriority = priority * roadPriorityFactor;
|
||||||
|
|
||||||
double angle = 0;
|
double angle = 0;
|
||||||
if (_cameFromDict!.ContainsKey(currentNode))
|
if (_cameFromDict!.ContainsKey(currentNode))
|
||||||
{
|
{
|
||||||
@ -153,7 +155,6 @@ public class Pathfinder
|
|||||||
angle = nodeAngle / 180;
|
angle = nodeAngle / 180;
|
||||||
}
|
}
|
||||||
|
|
||||||
double roadPriority = priority * roadPriorityFactor;
|
|
||||||
return distance / (speed * angle + roadPriority + 1);
|
return distance / (speed * angle + roadPriority + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user