mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-17 07:36:23 +08:00
Retire square_is_weak()
No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -245,7 +245,7 @@ void Position::set_castling_rights(char token) {
|
||||
Square sqH = relative_square(c, SQ_H1);
|
||||
Square rsq, ksq = king_square(c);
|
||||
|
||||
token = toupper(token);
|
||||
token = char(toupper(token));
|
||||
|
||||
if (token == 'K')
|
||||
for (rsq = sqH; piece_on(rsq) != make_piece(c, ROOK); rsq--) {}
|
||||
|
||||
Reference in New Issue
Block a user