X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fevaluate.cpp;h=a2e5ef7b5711a985c413924329ded437f9c9f4d4;hb=6596f0eac0c1d25a12bfd923907bfc78beedbc90;hp=63541c2affbe00fa56d3477e55a712b83ce4a98d;hpb=209e94203f8c4d0a48405192d1e71c80f28f3159;p=stockfish diff --git a/src/evaluate.cpp b/src/evaluate.cpp index 63541c2a..a2e5ef7b 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -638,12 +638,6 @@ namespace { } } // r > RANK_3 - // Scale down bonus for candidate passers which need more than one - // pawn push to become passed, or have a pawn in front of them. - if ( !pos.pawn_passed(Us, s + Up) - || (pos.pieces(PAWN) & (s + Up))) - bonus = bonus / 2; - score += bonus - PassedFile * edge_distance(file_of(s)); } @@ -752,7 +746,7 @@ namespace { { if ( pos.opposite_bishops() && pos.non_pawn_material() == 2 * BishopValueMg) - sf = 22 ; + sf = 22; else sf = std::min(sf, 36 + (pos.opposite_bishops() ? 2 : 7) * pos.count(strongSide));