pseudo_is_legal(): use sq_is_attacked() instead of sq_attackers()

This commit is contained in:
2024-04-13 06:50:15 +02:00
parent a6eedebc19
commit 0330696f87
3 changed files with 3 additions and 8 deletions

View File

@@ -101,7 +101,6 @@ bitboard_t sq_attackers(const pos_t *pos, const bitboard_t occ, const square_t s
{
bitboard_t attackers = 0, tmp;
bitboard_t sqbb = mask(sq);
//bitboard_t occ = pos_occ(pos);
bitboard_t to;
color_t opp = OPPONENT(c);