X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fposition.cpp;h=bd5daa6dcb0268be338f753750cdb945ecdc0faf;hb=e917bd59b1e317c6b48dc676473359fdfb86d9d4;hp=c915a1f9f3cf7e466eb2ed9d754cc75cdd22cbd1;hpb=e8ffca3eb49f607d361688c41c9ae9b3b3de4b80;p=stockfish diff --git a/src/position.cpp b/src/position.cpp index c915a1f9..bd5daa6d 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -476,7 +476,7 @@ const string Position::fen() const { if (can_castle(BLACK_OOO)) ss << (chess960 ? char('a' + file_of(castling_rook_square(BLACK | QUEEN_SIDE))) : 'q'); - if (!can_castle(WHITE) && !can_castle(BLACK)) + if (!can_castle(ANY_CASTLING)) ss << '-'; ss << (ep_square() == SQ_NONE ? " - " : " " + UCI::square(ep_square()) + " ")