mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 03:57:45 +00:00
Small cleanups.
closes https://github.com/official-stockfish/Stockfish/pull/2532 Bench: 4869669
This commit is contained in:
+2
-2
@@ -633,11 +633,11 @@ bool Position::gives_check(Move m) const {
|
||||
Square to = to_sq(m);
|
||||
|
||||
// Is there a direct check?
|
||||
if (st->checkSquares[type_of(piece_on(from))] & to)
|
||||
if (check_squares(type_of(piece_on(from))) & to)
|
||||
return true;
|
||||
|
||||
// Is there a discovered check?
|
||||
if ( (st->blockersForKing[~sideToMove] & from)
|
||||
if ( (blockers_for_king(~sideToMove) & from)
|
||||
&& !aligned(from, to, square<KING>(~sideToMove)))
|
||||
return true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user