mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-19 16:46:30 +08:00
Simplify squares_delta()
And rename in ray_direction() Patch from UncombedCoconut. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -562,7 +562,7 @@ namespace {
|
||||
|
||||
if (Type == CHECK)
|
||||
{
|
||||
// Condider only pawn moves which give direct checks
|
||||
// Consider only pawn moves which give direct checks
|
||||
b1 &= pos.attacks_from<PAWN>(ksq, Them);
|
||||
b2 &= pos.attacks_from<PAWN>(ksq, Them);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user