mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 00:33:09 +00:00
Simplify a condition in refutes()
No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
9518cc3254
commit
a6c5f60caa
1 changed files with 1 additions and 1 deletions
|
@ -1454,7 +1454,7 @@ moves_loop: // When in check and at SpNode search starts from here
|
||||||
| (attacks_bb<BISHOP>(m2to, occ) & pos.pieces(color_of(pc), QUEEN, BISHOP));
|
| (attacks_bb<BISHOP>(m2to, occ) & pos.pieces(color_of(pc), QUEEN, BISHOP));
|
||||||
|
|
||||||
// Verify attackers are triggered by our move and not already existing
|
// Verify attackers are triggered by our move and not already existing
|
||||||
if (xray && (xray ^ (xray & pos.attacks_from<QUEEN>(m2to))))
|
if (xray && (xray & ~pos.attacks_from<QUEEN>(m2to))) // Unlikely xray
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue