X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fevaluate.cpp;h=6128b45fcad597e7c2ddad68f2ca4b55364f622d;hp=e6938e189f4312f3eaff82f68c2645f9c0701533;hb=68209c9121b54760f03e5f00d6698bca190706ed;hpb=a6fe035977830a3a91add3a5b043609d7c9a0c04 diff --git a/src/evaluate.cpp b/src/evaluate.cpp index e6938e18..6128b45f 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -415,13 +415,13 @@ namespace { Bitboard kingFlank, weak, b, b1, b2, safe, unsafeChecks; // King shelter and enemy pawns storm - Score score = pe->king_safety(pos, ksq); + Score score = pe->king_safety(pos); // Find the squares that opponent attacks in our king flank, and the squares // which are attacked twice in that flank but not defended by our pawns. kingFlank = KingFlank[file_of(ksq)]; b1 = attackedBy[Them][ALL_PIECES] & kingFlank & Camp; - b2 = b1 & attackedBy2[Them] & ~attackedBy[Us][PAWN]; + b2 = b1 & attackedBy2[Them]; int tropism = popcount(b1) + popcount(b2);