浏览代码

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

Ivan Savenko 1 年之前
父节点
当前提交
2261298d09
共有 1 个文件被更改,包括 0 次插入3 次删除
  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;