]> git.sesse.net Git - stockfish/blobdiff - src/pawns.cpp
Remove undefined pinned_pieces(Color c, Bitboard& p)
[stockfish] / src / pawns.cpp
index a681571dd9c72c90d76bb23365f7b914ecc7af71..c32fbdec7dfa7d639f85d129df851d52fe569535 100644 (file)
@@ -303,7 +303,7 @@ PawnInfo* PawnInfoTable::get_pawn_info(const Position& pos) {
         if (   passed
             || isolated
             || chain
-            || (pos.pawn_attacks(s, us) & theirPawns)
+            || (pos.pawn_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(s, us);
+            Bitboard b = pos.pawn_attacks_from(s, us);
             if (us == WHITE)
             {
                 for ( ; !(b & (ourPawns | theirPawns)); b <<= 8);