diff --git a/Pathfinding/Pathfinder.cs b/Pathfinding/Pathfinder.cs index 13f2354..dec6866 100644 --- a/Pathfinding/Pathfinder.cs +++ b/Pathfinding/Pathfinder.cs @@ -45,7 +45,7 @@ public class Pathfinder neighbor.currentPathWeight = newPotentialWeight; neighbor.currentPathLength = closestNodeToGoal.currentPathLength + Utils.DistanceBetween(closestNodeToGoal, neighbor); - if (neighbor.Equals(goalNode) || closestNodeToGoal.directDistanceToGoal < 250) + if (neighbor.Equals(goalNode) || closestNodeToGoal.directDistanceToGoal < 10) //change for faster stop = true; else {