mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-24 19:16:49 +08:00
Retire neighboring_files_bb() overload
Rarely used and we prefer to not hide the complexity. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -223,7 +223,7 @@ Score PawnInfo::updateShelter(const Position& pos, Square ksq) {
|
||||
|
||||
if (relative_rank(Us, ksq) <= RANK_4)
|
||||
{
|
||||
pawns = pos.pieces(PAWN, Us) & this_and_neighboring_files_bb(ksq);
|
||||
pawns = pos.pieces(PAWN, Us) & this_and_neighboring_files_bb(file_of(ksq));
|
||||
r = ksq & (7 << 3);
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user