X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=15a9cde5b706914ffe1904ca74d060769ff892c2;hp=8f46d82a5ed856abb0d68a847e7f2e97afa92e49;hb=db53883f067eea088ed5fcf3ef0b0fa27dde072c;hpb=13ffb08136947bc65f79a29d4cf92740324a7136 diff --git a/src/search.cpp b/src/search.cpp index 8f46d82a..15a9cde5 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -811,12 +811,7 @@ split_point_start: // At split points actual search starts from here givesCheck = pos.move_gives_check(move, ci); dangerous = givesCheck || pos.is_passed_pawn_push(move) - || type_of(move) == CASTLE - || ( captureOrPromotion // Entering a pawn endgame? - && type_of(pos.piece_on(to_sq(move))) != PAWN - && type_of(move) == NORMAL - && ( pos.non_pawn_material(WHITE) + pos.non_pawn_material(BLACK) - - PieceValue[MG][pos.piece_on(to_sq(move))] == VALUE_ZERO)); + || type_of(move) == CASTLE; // Step 12. Extend checks and, in PV nodes, also dangerous moves if (PvNode && dangerous)