mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-23 10:36:26 +08:00
Merge branch 'master' of github.com:nodchip/Stockfish into k-p_256x2-32-32
This commit is contained in:
@@ -371,6 +371,9 @@ int Position::set_from_packed_sfen(const PackedSfen& sfen , StateInfo * si, Thre
|
|||||||
// En passant square. Ignore if no pawn capture is possible
|
// En passant square. Ignore if no pawn capture is possible
|
||||||
if (stream.read_one_bit()) {
|
if (stream.read_one_bit()) {
|
||||||
Square ep_square = static_cast<Square>(stream.read_n_bit(6));
|
Square ep_square = static_cast<Square>(stream.read_n_bit(6));
|
||||||
|
if (mirror) {
|
||||||
|
ep_square = Mir(ep_square);
|
||||||
|
}
|
||||||
st->epSquare = ep_square;
|
st->epSquare = ep_square;
|
||||||
|
|
||||||
if (!(attackers_to(st->epSquare) & pieces(sideToMove, PAWN))
|
if (!(attackers_to(st->epSquare) & pieces(sideToMove, PAWN))
|
||||||
|
|||||||
Reference in New Issue
Block a user