X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fevaluate.cpp;h=32469a916e8cc59b052ac9e3d1bca2f83c74900e;hp=6f652c0a150c209a27b2f84478951cda4f46fccf;hb=3ec94abcdb5f4ad81cc8829aece2d7fa64bb21db;hpb=e1907e349f5d3ca7791504dcf2dc7cba144f2a87;ds=sidebyside diff --git a/src/evaluate.cpp b/src/evaluate.cpp index 6f652c0a..32469a91 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -841,7 +841,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(file_of(s)); + supportingPawns = pos.pieces(PAWN, Us) & adjacent_files_bb(file_of(s)); if (supportingPawns & rank_bb(s)) ebonus += Value(r * 20); @@ -967,7 +967,7 @@ namespace { pliesToGo = 2 * movesToGo - int(loserSide == pos.side_to_move()); // Generate list of blocking pawns and supporters - supporters = neighboring_files_bb(file_of(s)) & candidates; + supporters = adjacent_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);