X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fpawns.cpp;h=f06b1283d418a529e8196150a5de85e8b934bd02;hp=c32fbdec7dfa7d639f85d129df851d52fe569535;hb=e4277c06bfb783b5ec78001eeef06fa9feae033f;hpb=dd80b9abaf8aa880c5aa2db10066d4c81e8d7205 diff --git a/src/pawns.cpp b/src/pawns.cpp index c32fbdec..f06b1283 100644 --- a/src/pawns.cpp +++ b/src/pawns.cpp @@ -303,7 +303,7 @@ PawnInfo* PawnInfoTable::get_pawn_info(const Position& pos) { if ( passed || isolated || chain - || (pos.pawn_attacks_from(s, us) & theirPawns) + || (pos.attacks_from(s, us) & theirPawns) || (ourPawns & behind_bb(us, r) & neighboring_files_bb(f))) backward = false; else @@ -312,7 +312,7 @@ PawnInfo* PawnInfoTable::get_pawn_info(const Position& pos) { // pawn on neighboring files. We now check whether the pawn is // backward by looking in the forward direction on the neighboring // files, and seeing whether we meet a friendly or an enemy pawn first. - Bitboard b = pos.pawn_attacks_from(s, us); + Bitboard b = pos.attacks_from(s, us); if (us == WHITE) { for ( ; !(b & (ourPawns | theirPawns)); b <<= 8);