mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 08:37:44 +00: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:
+2
-2
@@ -48,7 +48,7 @@ struct Entry {
|
||||
template<Color Us>
|
||||
Score king_safety(const Position& pos, Square ksq) {
|
||||
|
||||
return kingSquares[Us] == ksq && castleRights[Us] == pos.can_castle(Us)
|
||||
return kingSquares[Us] == ksq && castlingFlags[Us] == pos.can_castle(Us)
|
||||
? kingSafety[Us] : update_safety<Us>(pos, ksq);
|
||||
}
|
||||
|
||||
@@ -64,7 +64,7 @@ struct Entry {
|
||||
Bitboard pawnAttacks[COLOR_NB];
|
||||
Square kingSquares[COLOR_NB];
|
||||
int minKPdistance[COLOR_NB];
|
||||
int castleRights[COLOR_NB];
|
||||
int castlingFlags[COLOR_NB];
|
||||
Score value;
|
||||
int semiopenFiles[COLOR_NB];
|
||||
Score kingSafety[COLOR_NB];
|
||||
|
||||
Reference in New Issue
Block a user