X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.cpp;h=c40b1199bd823f0f6f9268bff8ba70e42304fd21;hp=52e6dd0fc5b520d1696b2987ff907e512b009526;hb=c376ffce0f666d289a22639de29b5c409db6a9d2;hpb=42caebfaa5854c28cc2799536bfc56a9b7ba97f3 diff --git a/src/position.cpp b/src/position.cpp index 52e6dd0f..c40b1199 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -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; }