lowercase var
This commit is contained in:
parent
bb0dd03e0f
commit
8093ad5dfd
@ -36,11 +36,11 @@ public class Pathfinder
|
|||||||
closestNodeToGoal = toVisit.First();
|
closestNodeToGoal = toVisit.First();
|
||||||
foreach (OsmNode node in toVisit)
|
foreach (OsmNode node in toVisit)
|
||||||
{
|
{
|
||||||
if (node.DirectDistanceToGoal.Equals(double.MaxValue))
|
if (node.directDistanceToGoal.Equals(double.MaxValue))
|
||||||
{
|
{
|
||||||
node.DirectDistanceToGoal = Utils.DistanceBetween(node, goalNode);
|
node.directDistanceToGoal = Utils.DistanceBetween(node, goalNode);
|
||||||
}
|
}
|
||||||
if (node.DirectDistanceToGoal < closestNodeToGoal.DirectDistanceToGoal)
|
if (node.directDistanceToGoal < closestNodeToGoal.directDistanceToGoal)
|
||||||
{
|
{
|
||||||
closestNodeToGoal = node;
|
closestNodeToGoal = node;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user