mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-17 23:56:23 +08:00
Fix compile errors in debug mode
Fall out of move_promotion() rename No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -982,7 +982,7 @@ void Position::do_promotion_move(Move m) {
|
|||||||
|
|
||||||
assert(is_ok());
|
assert(is_ok());
|
||||||
assert(move_is_ok(m));
|
assert(move_is_ok(m));
|
||||||
assert(move_promotion(m));
|
assert(move_is_promotion(m));
|
||||||
|
|
||||||
us = side_to_move();
|
us = side_to_move();
|
||||||
them = opposite_color(us);
|
them = opposite_color(us);
|
||||||
@@ -1290,7 +1290,7 @@ void Position::undo_promotion_move(Move m) {
|
|||||||
PieceType promotion;
|
PieceType promotion;
|
||||||
|
|
||||||
assert(move_is_ok(m));
|
assert(move_is_ok(m));
|
||||||
assert(move_promotion(m));
|
assert(move_is_promotion(m));
|
||||||
|
|
||||||
// When we have arrived here, some work has already been done by
|
// When we have arrived here, some work has already been done by
|
||||||
// Position::undo_move. In particular, the side to move has been switched,
|
// Position::undo_move. In particular, the side to move has been switched,
|
||||||
|
|||||||
@@ -2278,7 +2278,7 @@ namespace {
|
|||||||
|
|
||||||
assert(move_is_ok(m));
|
assert(move_is_ok(m));
|
||||||
assert(threat == MOVE_NONE || move_is_ok(threat));
|
assert(threat == MOVE_NONE || move_is_ok(threat));
|
||||||
assert(!move_promotion(m));
|
assert(!move_is_promotion(m));
|
||||||
assert(!pos.move_is_check(m));
|
assert(!pos.move_is_check(m));
|
||||||
assert(!pos.move_is_capture(m));
|
assert(!pos.move_is_capture(m));
|
||||||
assert(!pos.move_is_passed_pawn_push(m));
|
assert(!pos.move_is_passed_pawn_push(m));
|
||||||
|
|||||||
Reference in New Issue
Block a user