X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=a54e181a2a906e1033848d9983655a7805eb24cf;hp=70520ac9ff74049b534cbf720abd857bd3ac3b40;hb=ddcbacd04d1c860e808202ce8c1206c8acdca627;hpb=ec2002c594cce22dfbbdc7b6b8df2828a00d18cf diff --git a/src/search.cpp b/src/search.cpp index 70520ac9..a54e181a 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1193,10 +1193,16 @@ moves_loop: // When in check, search starts from here value = -search(pos, ss+1, -(alpha+1), -alpha, d, true); - doFullDepthSearch = (value > alpha && d != newDepth), didLMR = true; + doFullDepthSearch = value > alpha && d != newDepth; + + didLMR = true; } else - doFullDepthSearch = !PvNode || moveCount > 1, didLMR = false; + { + doFullDepthSearch = !PvNode || moveCount > 1; + + didLMR = false; + } // Step 17. Full depth search when LMR is skipped or fails high if (doFullDepthSearch)