Skip to content

Commit

Permalink
no need to unclose start/end any more
Browse files Browse the repository at this point in the history
  • Loading branch information
nornagon committed Jun 4, 2024
1 parent c287363 commit 25083c1
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/pathfinding.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,6 @@ std::vector<tripoint> map::route( const tripoint &f, const tripoint &t,

pf.reset( min.z, max.z );

// Start and end must not be closed
pf.unclose_point( f );
pf.unclose_point( t );
pf.add_point( 0, 0, f, f );

bool done = false;
Expand Down

0 comments on commit 25083c1

Please sign in to comment.