X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fevaluate.cpp;h=6b15f6c7f0b8838b151aeba3d48380d60da34572;hb=5c5af4fa6533e22fb56dd22985cf2b3938efde6c;hp=7e4f963e3685231d3276afa713040455182fd4ee;hpb=efd21679980dfd59320a5e238f44952873353829;p=stockfish diff --git a/src/evaluate.cpp b/src/evaluate.cpp index 7e4f963e..6b15f6c7 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -850,7 +850,7 @@ namespace { // Increase the bonus if the passed pawn is supported by a friendly pawn // on the same rank and a bit smaller if it's on the previous rank. - supportingPawns = pos.pieces(PAWN, Us) & neighboring_files_bb(s); + supportingPawns = pos.pieces(PAWN, Us) & neighboring_files_bb(file_of(s)); if (supportingPawns & rank_bb(s)) ebonus += Value(r * 20); @@ -979,7 +979,7 @@ namespace { pliesToGo = 2 * movesToGo - int(loserSide == pos.side_to_move()); // Generate list of blocking pawns and supporters - supporters = neighboring_files_bb(s) & candidates; + supporters = neighboring_files_bb(file_of(s)) & candidates; opposed = squares_in_front_of(loserSide, s) & pos.pieces(PAWN, winnerSide); blockers = passed_pawn_mask(loserSide, s) & pos.pieces(PAWN, winnerSide);