X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fevaluate.cpp;h=a4b3c3383bdbb4cb897880053f96ec0fb1e42e5d;hp=3d9c44324405f77afd200bda162e41e779e3133d;hb=b258b4fee789680566bff973cd6f45dc5d24b365;hpb=72a501c6fe5e4e7b61291e9603d0c6cc0902e618 diff --git a/src/evaluate.cpp b/src/evaluate.cpp index 3d9c4432..a4b3c338 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -477,7 +477,7 @@ namespace { // Transform the kingDanger units into a Score, and substract it from the evaluation if (kingDanger > 0) - score -= make_score(std::min(kingDanger * kingDanger / 4096, 2 * int(BishopValueMg)), 0); + score -= make_score(kingDanger * kingDanger / 4096, 0); } // King tropism: firstly, find squares that opponent attacks in our king flank