X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=10aa196add95d87944db24863eb1cbd5c764010e;hp=8279d15780474d598144d5d1a0c16a0804f9e501;hb=4fa5dd4db55ba9fde841120fc8fbcd99f6540eb4;hpb=a6017aa728c12c48faf758e6df3b3a1e2b704dad diff --git a/src/search.cpp b/src/search.cpp index 8279d157..10aa196a 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1122,7 +1122,8 @@ namespace { } } // Null move search not allowed, try razoring - else if (depth < RazorDepth && approximateEval < beta - RazorMargin) + else if ( (approximateEval < beta - RazorMargin && depth < RazorDepth) + ||(approximateEval < beta - PawnValueMidgame && depth <= OnePly)) { Value v = qsearch(pos, ss, beta-1, beta, Depth(0), ply, threadID); if (v < beta)