X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fsan.cpp;fp=src%2Fsan.cpp;h=d8e7da15a7f8b7b83931956f7a8d9beb6d432f13;hb=9394db765fba22eae790fe4dc79dfcd0f6a43a6d;hp=963ea7c9f8bddc52f1b099215c8113cf7bdd4eaa;hpb=4d6258bb32d90b1efc42e28885beb40f87b55e0d;p=stockfish 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 {