whitespace and readability

This commit is contained in:
glax 2023-04-23 15:27:23 +02:00
parent 73e7daffd7
commit 30b29aa25c

View File

@ -140,6 +140,8 @@ public class Pathfinder
double speed = regionManager.GetSpeedForEdge(currentNode, edge.wayId, _speedType);
double roadPriority = priority * roadPriorityFactor;
double angle = 0;
if (_cameFromDict!.ContainsKey(currentNode))
{
@ -153,7 +155,6 @@ public class Pathfinder
angle = nodeAngle / 180;
}
double roadPriority = priority * roadPriorityFactor;
return distance / (speed * angle + roadPriority + 1);
}