]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Remove a few file_of's (simplify adjacent_files_bb) #2171
[stockfish] / src / search.cpp
index 115867873748a0f6a958a84f2945fe8020cc5496..f26ab959ba27ee829c9c07c9c4069b9b3a0a57ba 100644 (file)
@@ -984,7 +984,8 @@ moves_loop: // When in check, search starts from here
               if (!pos.see_ge(move, Value(-29 * lmrDepth * lmrDepth)))
                   continue;
           }
-          else if (!pos.see_ge(move, -PawnValueEg * (depth / ONE_PLY))) // (~20 Elo)
+          else if ((!givesCheck || !(pos.blockers_for_king(~us) & from_sq(move)))
+                  && !pos.see_ge(move, -PawnValueEg * (depth / ONE_PLY))) // (~20 Elo)
                   continue;
       }