X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=40808c6adfc77797484fb196cb8c14310d16837e;hp=76db6d69217f4d53c3d007d808a0b1b952554111;hb=d4575941974ade5135971b87ff663ef4ff000de9;hpb=942c18ef6620967921049ba24f25e08d710c947e diff --git a/src/search.cpp b/src/search.cpp index 76db6d69..40808c6a 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1447,8 +1447,9 @@ namespace { } // Null move search not allowed, try razoring else if ( !value_is_mate(beta) + && !isCheck && depth < RazorDepth - && staticValue < beta - (depth > OnePly ? NullMoveMargin + 16 * depth : 2*NullMoveMargin) + && staticValue < beta - (NullMoveMargin + 16 * depth) && ss[ply - 1].currentMove != MOVE_NULL && ttMove == MOVE_NONE && !pos.has_pawn_on_7th(pos.side_to_move()))