mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-06 10:53:50 +08:00
Retire test for king moves in see()
We already test this condition in see_sign() and so it is almost always a redundant verification. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -1519,11 +1519,6 @@ int Position::see(Move m) const {
|
||||
from = move_from(m);
|
||||
to = move_to(m);
|
||||
capturedType = type_of_piece_on(to);
|
||||
|
||||
// King cannot be recaptured
|
||||
if (capturedType == KING)
|
||||
return seeValues[capturedType];
|
||||
|
||||
occupied = occupied_squares();
|
||||
|
||||
// Handle en passant moves
|
||||
|
||||
Reference in New Issue
Block a user