Browse Source

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

Ivan Savenko 1 year ago
parent
commit
2261298d09
1 changed files with 0 additions and 3 deletions
  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;