X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=b9ff56fbd2d2b3297fdd9e416efa7d03fcfda37b;hp=7eab970a866ea27f30f3a500240affc98fac1b8b;hb=1d977aa79ecaf410f4b2065eb8f11e0a5e689db4;hpb=d8aeaab79ca6809f8ad6a650611e827a7cba8978 diff --git a/src/search.cpp b/src/search.cpp index 7eab970a..b9ff56fb 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -958,10 +958,9 @@ moves_loop: // When in check and at SpNode search starts from here [pos.piece_on(to_sq(move))][to_sq(move)] <= VALUE_ZERO)) ss->reduction += ONE_PLY; - if ( move == countermove - || ( History[pos.piece_on(to_sq(move))][to_sq(move)] > VALUE_ZERO + if ( History[pos.piece_on(to_sq(move))][to_sq(move)] > VALUE_ZERO && CounterMovesHistory[pos.piece_on(prevMoveSq)][prevMoveSq] - [pos.piece_on(to_sq(move))][to_sq(move)] > VALUE_ZERO)) + [pos.piece_on(to_sq(move))][to_sq(move)] > VALUE_ZERO) ss->reduction = std::max(DEPTH_ZERO, ss->reduction - ONE_PLY); // Decrease reduction for moves that escape a capture