// that's not already included in the queen promotion.
if (Type == QUIET_CHECKS && (StepAttacksBB[W_KNIGHT][to] & ksq))
*moveList++ = make<PROMOTION>(to - Delta, to, KNIGHT);
+ else
+ (void)ksq; // Silence a warning under MSVC
return moveList;
}
if (Checks)
{
if ( (Pt == BISHOP || Pt == ROOK || Pt == QUEEN)
- && !(PseudoAttacks[Pt][from] & target & pos.check_info().checkSquares[Pt]))
+ && !(PseudoAttacks[Pt][from] & target & pos.check_squares(Pt)))
continue;
if (pos.discovered_check_candidates() & from)
Bitboard b = pos.attacks_from<Pt>(from) & target;
if (Checks)
- b &= pos.check_info().checkSquares[Pt];
+ b &= pos.check_squares(Pt);
while (b)
*moveList++ = make_move(from, pop_lsb(&b));