X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=2fe6a5c1f68322cf8a28790c64bda74831ca965e;hp=39dcf9768157d4276ccc97fbe50a80bafc2b1c73;hb=0da1d6a84612c8443b3e3c9b3f74890635ce23e2;hpb=e4fd9a2df7d0977cc279d73d94e79a866daddb2f diff --git a/src/search.cpp b/src/search.cpp index 39dcf976..2fe6a5c1 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -449,7 +449,6 @@ void think(const Position &pos, bool infinite, bool ponder, int side_to_move, // Set thinking time: int myTime = time[side_to_move]; int myIncrement = increment[side_to_move]; - int oppTime = time[1 - side_to_move]; if (!movesToGo) // Sudden death time control { @@ -1242,14 +1241,14 @@ namespace { else if ( !value_is_mate(beta) && approximateEval < beta - RazorMargin && depth < RazorDepth - && (RazorAtDepthOne || depth > OnePly) + && (RazorAtDepthOne || depth >= 2*OnePly) && ttMove == MOVE_NONE && !pos.has_pawn_on_7th(pos.side_to_move())) { Value v = qsearch(pos, ss, beta-1, beta, Depth(0), ply, threadID); if ( (v < beta - RazorMargin - RazorMargin / 4) - || (depth <= 2*OnePly && v < beta - RazorMargin) - || (depth <= OnePly && v < beta - RazorMargin / 2)) + || (depth < 3*OnePly && v < beta - RazorMargin) + || (depth < 2*OnePly && v < beta - RazorMargin / 2)) return v; }