Rename check related functions

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba
2011-04-29 16:26:48 +02:00
parent 92d70fb667
commit 4dc7ba1619
8 changed files with 53 additions and 54 deletions

View File

@@ -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);