mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-23 10:36:26 +08:00
Small cleanups
closes https://github.com/official-stockfish/Stockfish/pull/2567 No functional change.
This commit is contained in:
@@ -1121,10 +1121,7 @@ bool Position::is_draw(int ply) const {
|
||||
|
||||
// Return a draw score if a position repeats once earlier but strictly
|
||||
// after the root, or repeats twice before or at the root.
|
||||
if (st->repetition && st->repetition < ply)
|
||||
return true;
|
||||
|
||||
return false;
|
||||
return st->repetition && st->repetition < ply;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user