X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsan.cpp;h=d8e7da15a7f8b7b83931956f7a8d9beb6d432f13;hp=963ea7c9f8bddc52f1b099215c8113cf7bdd4eaa;hb=1a20d727019548de69314a90ae59a3b8a76b4ae7;hpb=a0f0a7dc4f117e8ed85c94caf2c2da9804c3d296 diff --git a/src/san.cpp b/src/san.cpp index 963ea7c9..d8e7da15 100644 --- a/src/san.cpp +++ b/src/san.cpp @@ -73,9 +73,9 @@ const string move_to_san(Position& pos, Move m) { if (m == MOVE_NULL) return "(null)"; - if (move_is_long_castle(m) || (int(to - from) == -2 && pt == KING)) + if (move_is_long_castle(m)) san = "O-O-O"; - else if (move_is_short_castle(m) || (int(to - from) == 2 && pt == KING)) + else if (move_is_short_castle(m)) san = "O-O"; else {