Rename squares_aligned()

Rename to the shorter but still
clear aligned()

No functional change.
This commit is contained in:
Marco Costalba
2013-11-10 17:14:46 +01:00
parent a518d5d3ad
commit 1d18647e73
3 changed files with 5 additions and 5 deletions

View File

@@ -515,7 +515,7 @@ bool Position::legal(Move m, Bitboard pinned) const {
// is moving along the ray towards or away from the king.
return !pinned
|| !(pinned & from)
|| squares_aligned(from, to_sq(m), king_square(us));
|| aligned(from, to_sq(m), king_square(us));
}
@@ -658,7 +658,7 @@ bool Position::gives_check(Move m, const CheckInfo& ci) const {
{
// For pawn and king moves we need to verify also direction
if ( (pt != PAWN && pt != KING)
|| !squares_aligned(from, to, king_square(~sideToMove)))
|| !aligned(from, to, king_square(~sideToMove)))
return true;
}