Jelajahi Sumber

Revert U-turns block. Actually possible in H3 and has unintended side
effects

Ivan Savenko 2 tahun lalu
induk
melakukan
2261298d09
1 mengubah file dengan 0 tambahan dan 3 penghapusan
  1. 0 3
      lib/pathfinder/CPathfinder.cpp

+ 0 - 3
lib/pathfinder/CPathfinder.cpp

@@ -162,9 +162,6 @@ void CPathfinder::calculatePaths()
 			if(neighbour->locked)
 				continue;
 
-			if (source.node->theNodeBefore && source.node->theNodeBefore->coord == neighbour->coord )
-				continue; // block U-turns
-
 			if(!hlp->isLayerAvailable(neighbour->layer))
 				continue;