From 8093ad5dfd85deaed28cf5b9d072b2a1c09f2cf1 Mon Sep 17 00:00:00 2001 From: C9Glax <13404778+C9Glax@users.noreply.github.com> Date: Tue, 7 Feb 2023 23:53:38 +0100 Subject: [PATCH] lowercase var --- Pathfinding/Pathfinder.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Pathfinding/Pathfinder.cs b/Pathfinding/Pathfinder.cs index ca8dc09..2458e52 100644 --- a/Pathfinding/Pathfinder.cs +++ b/Pathfinding/Pathfinder.cs @@ -36,11 +36,11 @@ public class Pathfinder closestNodeToGoal = toVisit.First(); 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; }