]> git.sesse.net Git - stockfish/blobdiff - src/evaluate.cpp
Remove cap in kingDanger initialization
[stockfish] / src / evaluate.cpp
index 2f60edda31bb367aa01bb78221d0d5191d971797..e381d6f8e503d432f3f837fcd40611f0b600a5e8 100644 (file)
@@ -424,7 +424,7 @@ namespace {
         // number and types of the enemy's attacking pieces, the number of
         // attacked and undefended squares around our king and the quality of
         // the pawn shelter (current 'score' value).
-        kingDanger =  std::min(820, ei.kingAttackersCount[Them] * ei.kingAttackersWeight[Them])
+        kingDanger =        ei.kingAttackersCount[Them] * ei.kingAttackersWeight[Them]
                     + 103 * ei.kingAdjacentZoneAttacksCount[Them]
                     + 190 * popcount(undefended)
                     + 142 * (popcount(b) + !!pos.pinned_pieces(Us))