cleanup
This commit is contained in:
parent
14533c150f
commit
c1557b7678
@ -37,7 +37,6 @@ public static partial class Pathfinder
|
||||
|
||||
if(neighbor.Equals(goalNode))
|
||||
return GetRouteFromCalc(goalNode, regionManager);
|
||||
//stop = true;
|
||||
if (!toVisit.UnorderedItems.Any(item => item.Element.Equals(neighbor)) && !stop)
|
||||
{
|
||||
toVisit.Enqueue(neighbor, neighbor.directDistanceToGoal);
|
||||
|
Loading…
Reference in New Issue
Block a user