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:
Marco Costalba
2011-01-02 10:41:05 +01:00
parent f902ddaa89
commit 57c51dd1ef
2 changed files with 8 additions and 17 deletions

View File

@@ -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);