Skip to content

Commit

Permalink
Add comment about failed optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
joelverhagen committed Jan 15, 2024
1 parent 4fc32c2 commit 596eb1b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/FactorioTools/OilField/Steps/AddPipes.1.FBE.cs
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,8 @@ private static TwoConnectedGroups ConnectTwoGroups(Context context, Group a, Gro
List<Location>? path;
if (strategy == PipeStrategy.FbeOriginal)
{
// We can't terminal early based on max turns because this leads to different results since it allows
// secondary path options that would have otherwise been not considered for a given start and goal state.
path = BreadthFirstFinder.GetShortestPath(context, l.B, l.A);
if (path is null)
{
Expand Down

0 comments on commit 596eb1b

Please sign in to comment.