mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 08:43:09 +00: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:
parent
ad4eac376f
commit
36c0ab3a50
2 changed files with 3 additions and 3 deletions
|
@ -982,7 +982,7 @@ void Position::do_promotion_move(Move m) {
|
|||
|
||||
assert(is_ok());
|
||||
assert(move_is_ok(m));
|
||||
assert(move_promotion(m));
|
||||
assert(move_is_promotion(m));
|
||||
|
||||
us = side_to_move();
|
||||
them = opposite_color(us);
|
||||
|
@ -1290,7 +1290,7 @@ void Position::undo_promotion_move(Move m) {
|
|||
PieceType promotion;
|
||||
|
||||
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
|
||||
// Position::undo_move. In particular, the side to move has been switched,
|
||||
|
|
|
@ -2278,7 +2278,7 @@ namespace {
|
|||
|
||||
assert(move_is_ok(m));
|
||||
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_capture(m));
|
||||
assert(!pos.move_is_passed_pawn_push(m));
|
||||
|
|
Loading…
Add table
Reference in a new issue