X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fsearch.cpp;h=ec2b1c9cee1d09ce1637bd9bed7d8b7a2e65ed0a;hb=89ec224cb92f49a6edc3d8b03a43d1c4418c285a;hp=b9fdcea119a51b4761ebf94c3a2eacdc250991ff;hpb=181cc3f93feb00fbf00febadf7e63323e828ebe5;p=stockfish diff --git a/src/search.cpp b/src/search.cpp index b9fdcea1..ec2b1c9c 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -763,7 +763,7 @@ namespace { // Step 2. Check for aborted search and immediate draw if (( StopRequest - || pos.is_draw() + || pos.is_draw() || ss->ply > PLY_MAX) && !RootNode) return VALUE_DRAW; @@ -1333,7 +1333,7 @@ split_point_start: // At split points actual search starts from here ss->ply = (ss-1)->ply + 1; // Check for an instant draw or maximum ply reached - if (ss->ply > PLY_MAX || pos.is_draw()) + if (pos.is_draw() || ss->ply > PLY_MAX) return VALUE_DRAW; // Decide whether or not to include checks, this fixes also the type of @@ -2019,7 +2019,7 @@ split_point_start: // At split points actual search starts from here && pos.move_is_pl(tte->move()) && pos.pl_move_is_legal(tte->move(), pos.pinned_pieces(pos.side_to_move())) && ply < PLY_MAX - && (!pos.is_draw() || ply < 2)) + && (!pos.is_draw() || ply < 2)) { pv[ply] = tte->move(); pos.do_move(pv[ply++], *st++);