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