X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmovegen.cpp;h=e7678979f42450029c78d70cb0afe0d01358139e;hp=76a27d9f4936320165c0378f2b59225038b0abbe;hb=e2d3c163cbdd98de6f0399db358be964d014d313;hpb=800031c94c655e64e436846911e599de6eb35a72 diff --git a/src/movegen.cpp b/src/movegen.cpp index 76a27d9f..e7678979 100644 --- a/src/movegen.cpp +++ b/src/movegen.cpp @@ -96,7 +96,6 @@ namespace { // Compute our parametrized parameters at compile time, named according to // the point of view of white side. constexpr Color Them = (Us == WHITE ? BLACK : WHITE); - constexpr Bitboard TRank8BB = (Us == WHITE ? Rank8BB : Rank1BB); constexpr Bitboard TRank7BB = (Us == WHITE ? Rank7BB : Rank2BB); constexpr Bitboard TRank3BB = (Us == WHITE ? Rank3BB : Rank6BB); constexpr Direction Up = (Us == WHITE ? NORTH : SOUTH); @@ -161,7 +160,7 @@ namespace { } // Promotions and underpromotions - if (pawnsOn7 && (Type != EVASIONS || (target & TRank8BB))) + if (pawnsOn7) { if (Type == CAPTURES) emptySquares = ~pos.pieces();