X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fsearch.cpp;h=3862e27b74a1c4d6123441616cbcefa428a0f201;hb=a24c0a736c6d27335c6c4401a2626f3cf44036cf;hp=ec2b1c9cee1d09ce1637bd9bed7d8b7a2e65ed0a;hpb=a21a110188eed1ff41f2a1535a93b48c654663de;p=stockfish diff --git a/src/search.cpp b/src/search.cpp index ec2b1c9c..3862e27b 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1134,7 +1134,7 @@ split_point_start: // At split points actual search starts from here bool doFullDepthSearch = true; alpha = SpNode ? sp->alpha : alpha; - if ( depth >= 3 * ONE_PLY + if ( depth > 3 * ONE_PLY && !captureOrPromotion && !dangerous && !move_is_castle(move) @@ -1372,8 +1372,6 @@ split_point_start: // At split points actual search starts from here else ss->eval = bestValue = evaluate(pos, evalMargin); - update_gains(pos, (ss-1)->currentMove, (ss-1)->eval, ss->eval); - // Stand pat. Return immediately if static value is at least beta if (bestValue >= beta) {