X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fevaluate.cpp;h=0022ae4c26d28fcae3d329032d730a627b1ed9e9;hb=52f92d05a9eae0cc68a3cd157f8df35802a98297;hp=b531cc27d26489fc64a97890d571b1dd254c0a83;hpb=820c5c25b649d6bdd51bed14a16efdc11719b588;p=stockfish diff --git a/src/evaluate.cpp b/src/evaluate.cpp index b531cc27..0022ae4c 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -527,7 +527,7 @@ namespace { b = pos.pieces(Us, PAWN) & (~attackedBy[Them][ALL_PIECES] | attackedBy[Us][ALL_PIECES]); - safeThreats = pos.pawn_attacks(b) & weak; + safeThreats = pawn_attacks_bb(b) & weak; score += ThreatBySafePawn * popcount(safeThreats); } @@ -583,7 +583,7 @@ namespace { & (attackedBy[Us][ALL_PIECES] | ~attackedBy[Them][ALL_PIECES]); // Bonus for safe pawn threats on the next move - b = pos.pawn_attacks(b) + b = pawn_attacks_bb(b) & pos.pieces(Them) & ~attackedBy[Us][PAWN];