From 25083c10fe19e72e3ca66864a745cec0a64eba3a Mon Sep 17 00:00:00 2001 From: Jeremy Rose Date: Mon, 3 Jun 2024 17:37:31 -0700 Subject: [PATCH] no need to unclose start/end any more --- src/pathfinding.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/pathfinding.cpp b/src/pathfinding.cpp index 09607bb897cdd..1b7df181204d3 100644 --- a/src/pathfinding.cpp +++ b/src/pathfinding.cpp @@ -242,9 +242,6 @@ std::vector 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;