mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-21 09:37:16 +08:00
Small trivial cleanups
closes https://github.com/official-stockfish/Stockfish/pull/2801 No functional change
This commit is contained in:
committed by
Stéphane Nicolet
parent
3542033342
commit
5f1843c9cb
@@ -248,7 +248,7 @@ namespace {
|
||||
*moveList++ = make_move(ksq, pop_lsb(&b));
|
||||
|
||||
if ((Type != CAPTURES) && pos.can_castle(Us & ANY_CASTLING))
|
||||
for(CastlingRights cr : { Us & KING_SIDE, Us & QUEEN_SIDE } )
|
||||
for (CastlingRights cr : { Us & KING_SIDE, Us & QUEEN_SIDE } )
|
||||
if (!pos.castling_impeded(cr) && pos.can_castle(cr))
|
||||
*moveList++ = make<CASTLING>(ksq, pos.castling_rook_square(cr));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user