This commit is contained in:
glax 2023-04-09 22:10:41 +02:00
parent 14533c150f
commit c1557b7678

View File

@ -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);