mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-21 17:46:26 +08:00
Cleanup code
This PR includes following cleanups: - Remove the unused depth variable in the thread class. - cleanup ValueList (added from mstembera) closes https://github.com/official-stockfish/Stockfish/pull/4127 No functional change.
This commit is contained in:
committed by
Joost VandeVondele
parent
e639c45577
commit
0a01dd044f
@@ -1099,10 +1099,12 @@ bool Position::see_ge(Move m, Value threshold) const {
|
||||
// Don't allow pinned pieces to attack as long as there are
|
||||
// pinners on their original square.
|
||||
if (pinners(~stm) & occupied)
|
||||
{
|
||||
stmAttackers &= ~blockers_for_king(stm);
|
||||
|
||||
if (!stmAttackers)
|
||||
break;
|
||||
if (!stmAttackers)
|
||||
break;
|
||||
}
|
||||
|
||||
res ^= 1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user