X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fpawns.cpp;h=17a96670911dc414b351ca7f2197dada32a510a7;hp=0e57f01fffc089c2b00dc60b776800467f7c93f0;hb=e06a117d5e78ec4edc051f2b161d36559f784d37;hpb=b1b19343cd1f5ec65084dc11a0a0b4d5ece2a24b diff --git a/src/pawns.cpp b/src/pawns.cpp index 0e57f01f..17a96670 100644 --- a/src/pawns.cpp +++ b/src/pawns.cpp @@ -104,7 +104,6 @@ namespace { bool opposed, backward; Score score = SCORE_ZERO; const Square* pl = pos.squares(Us); - const Bitboard* pawnAttacksBB = StepAttacksBB[make_piece(Us, PAWN)]; Bitboard ourPawns = pos.pieces(Us , PAWN); Bitboard theirPawns = pos.pieces(Them, PAWN); @@ -129,8 +128,8 @@ namespace { // Flag the pawn opposed = theirPawns & forward_bb(Us, s); stoppers = theirPawns & passed_pawn_mask(Us, s); - lever = theirPawns & pawnAttacksBB[s]; - leverPush = theirPawns & pawnAttacksBB[s + Up]; + lever = theirPawns & PawnAttacks[Us][s]; + leverPush = theirPawns & PawnAttacks[Us][s + Up]; doubled = ourPawns & (s - Up); neighbours = ourPawns & adjacent_files_bb(f); phalanx = neighbours & rank_bb(s);