]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Simplify pawn threats and merge into ThreatenedByPawn[]
[stockfish] / src / search.cpp
index 5cdc01698f2425462fdb7ff8929fb29d55c7dcbd..e24d264d551bd617cc293a34ca0c570ef28d9fe6 100644 (file)
@@ -980,8 +980,8 @@ moves_loop: // When in check and at SpNode search starts from here
 
       // Step 19. Check for splitting the search
       if (   !SpNode
-          &&  Threads.size() >= 2
           &&  depth >= Threads.minimumSplitDepth
+          &&  Threads.available_slave(thisThread)
           &&  (   !thisThread->activeSplitPoint
                || !thisThread->activeSplitPoint->allSlavesSearching)
           &&  thisThread->splitPointsSize < MAX_SPLITPOINTS_PER_THREAD)