]> git.sesse.net Git - stockfish/blobdiff - src/evaluate.cpp
Remove redundant king square parameter
[stockfish] / src / evaluate.cpp
index e6938e189f4312f3eaff82f68c2645f9c0701533..6128b45fcad597e7c2ddad68f2ca4b55364f622d 100644 (file)
@@ -415,13 +415,13 @@ namespace {
     Bitboard kingFlank, weak, b, b1, b2, safe, unsafeChecks;
 
     // King shelter and enemy pawns storm
-    Score score = pe->king_safety<Us>(pos, ksq);
+    Score score = pe->king_safety<Us>(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);