mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-21 17:46:26 +08:00
Rename CASTLE to CASTLING
It is call 'castling move', not 'castle move' Noticed while reading DiscoCheck sources. No functional change.
This commit is contained in:
@@ -807,7 +807,7 @@ moves_loop: // When in check and at SpNode search starts from here
|
||||
givesCheck = pos.gives_check(move, ci);
|
||||
dangerous = givesCheck
|
||||
|| pos.passed_pawn_push(move)
|
||||
|| type_of(move) == CASTLE;
|
||||
|| type_of(move) == CASTLING;
|
||||
|
||||
// Step 12. Extend checks
|
||||
if (givesCheck && pos.see_sign(move) >= 0)
|
||||
@@ -1332,7 +1332,7 @@ moves_loop: // When in check and at SpNode search starts from here
|
||||
assert(is_ok(first));
|
||||
assert(is_ok(second));
|
||||
assert(color_of(pos.piece_on(from_sq(second))) == ~pos.side_to_move());
|
||||
assert(type_of(first) == CASTLE || color_of(pos.piece_on(to_sq(first))) == ~pos.side_to_move());
|
||||
assert(type_of(first) == CASTLING || color_of(pos.piece_on(to_sq(first))) == ~pos.side_to_move());
|
||||
|
||||
Square m1from = from_sq(first);
|
||||
Square m2from = from_sq(second);
|
||||
|
||||
Reference in New Issue
Block a user