mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-22 01:56:58 +08:00
Small cleanups
https://github.com/official-stockfish/Stockfish/pull/2584 No functional change.
This commit is contained in:
@@ -292,7 +292,7 @@ void MainThread::search() {
|
||||
|
||||
if (bestThread->rootMoves[0].score >= VALUE_TB_WIN_IN_MAX_PLY)
|
||||
{
|
||||
// Make sure we pick the shortest mate
|
||||
// Make sure we pick the shortest mate / TB conversion
|
||||
if (th->rootMoves[0].score > bestThread->rootMoves[0].score)
|
||||
bestThread = th;
|
||||
}
|
||||
@@ -867,7 +867,7 @@ namespace {
|
||||
|
||||
if (nullValue >= beta)
|
||||
{
|
||||
// Do not return unproven mate scores
|
||||
// Do not return unproven mate or TB scores
|
||||
if (nullValue >= VALUE_TB_WIN_IN_MAX_PLY)
|
||||
nullValue = beta;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user