]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Simplify pruning moves with negative SEE
[stockfish] / src / search.cpp
index a6c93b43550722e5c4584816497b1768d3b3ce4d..f39f1de1c639e7e03703f41bdd458eeefb0c004b 100644 (file)
@@ -1478,9 +1478,7 @@ moves_loop: // When in check, search starts from here
                        && !pos.capture(move);
 
       // Don't search moves with negative SEE values
-      if (  (!inCheck || evasionPrunable)
-          && !(givesCheck && pos.is_discovery_check_on_king(~pos.side_to_move(), move))
-          && !pos.see_ge(move))
+      if (  (!inCheck || evasionPrunable) && !pos.see_ge(move))
           continue;
 
       // Speculative prefetch as early as possible