mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 17:16:33 +08:00
Use update_checkers<>() also for PAWN
No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -532,6 +532,11 @@ inline Bitboard Position::pawn_attacks(Color c, Square s) const {
|
||||
return StepAttackBB[pawn_of_color(c)][s];
|
||||
}
|
||||
|
||||
template<>
|
||||
inline Bitboard Position::piece_attacks<PAWN>(Square s) const {
|
||||
return StepAttackBB[pawn_of_color(opposite_color(sideToMove))][s];
|
||||
}
|
||||
|
||||
template<>
|
||||
inline Bitboard Position::piece_attacks<KNIGHT>(Square s) const {
|
||||
return StepAttackBB[KNIGHT][s];
|
||||
|
||||
Reference in New Issue
Block a user