]> git.sesse.net Git - stockfish/blobdiff - src/evaluate.cpp
Remove condition for pawn threats
[stockfish] / src / evaluate.cpp
index ac9cf90bdcb314aad1198af283f0ab8d9662eb6c..bbab9c5032e09aaba7cba6f7c544721b76253db9 100644 (file)
@@ -586,10 +586,7 @@ namespace {
         & (attackedBy[Us][ALL_PIECES] | ~attackedBy[Them][ALL_PIECES]);
 
     // Bonus for safe pawn threats on the next move
-    b =   pawn_attacks_bb<Us>(b)
-       &  pos.pieces(Them)
-       & ~attackedBy[Us][PAWN];
-
+    b = pawn_attacks_bb<Us>(b) & pos.pieces(Them);
     score += ThreatByPawnPush * popcount(b);
 
     // Bonus for threats on the next moves against enemy queen