X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmove.cpp;h=da9e977dc611633e361db33e36467d46030777c4;hp=ff0adbe5b6d7cfce860b30b732d7dc17e7cccd0f;hb=4dc7ba16191bd1ded7c8257afd2a3b9194cebca8;hpb=92d70fb6677f4ed0568aa50f239ceea2d8a1cd97 diff --git a/src/move.cpp b/src/move.cpp index ff0adbe5..da9e977d 100644 --- a/src/move.cpp +++ b/src/move.cpp @@ -156,11 +156,11 @@ const string move_to_san(Position& pos, Move m) { } } - // The move gives check? We don't use pos.move_is_check() here + // The move gives check? We don't use pos.move_gives_check() here // because we need to test for a mate after the move is done. StateInfo st; pos.do_move(m, st); - if (pos.is_check()) + if (pos.in_check()) san += pos.is_mate() ? "#" : "+"; pos.undo_move(m);