X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fevaluate.cpp;h=664f3e859f32ea3e77fa352fa576fba98137000f;hp=9ff554cde1f76fa1e400bc4b0b3974190e97c59c;hb=2a2353aac65d6f7263081dc373c768c8717602db;hpb=1b4084b4a59c191647fda803e67fd1339e23426b diff --git a/src/evaluate.cpp b/src/evaluate.cpp index 9ff554cd..664f3e85 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -677,7 +677,7 @@ namespace { const Square ksq = pos.king_square(Us); // King shelter - Score bonus = ei.pi->king_shelter(pos, Us, ksq); + Score bonus = ei.pi->king_shelter(pos, ksq); // King safety. This is quite complicated, and is almost certainly far // from optimally tuned. @@ -701,7 +701,7 @@ namespace { attackUnits = Min(25, (ei.kingAttackersCount[Them] * ei.kingAttackersWeight[Them]) / 2) + 3 * (ei.kingAdjacentZoneAttacksCount[Them] + count_1s_max_15(undefended)) + InitKingDanger[relative_square(Us, ksq)] - - mg_value(ei.pi->king_shelter(pos, Us, ksq)) / 32; + - mg_value(ei.pi->king_shelter(pos, ksq)) / 32; // Analyse enemy's safe queen contact checks. First find undefended // squares around the king attacked by enemy queen...