From 2572055c87f04832e43d63f30f26de04cadb729c Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Wed, 2 Jun 2010 11:25:02 +0100 Subject: [PATCH] Fix white space breakage No functional change with faked split. Signed-off-by: Marco Costalba --- src/position.cpp | 2 +- src/search.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/position.cpp b/src/position.cpp index 09daeba0..a472c845 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -1668,7 +1668,7 @@ bool Position::is_draw() const { assert(st->ply >= st->rule50); - // Draw by repetition? + // Draw by repetition? for (int i = 4, e = Min(st->rule50, st->pliesFromNull); i <= e; i += 2) if (history[st->ply - i] == st->key) return true; diff --git a/src/search.cpp b/src/search.cpp index 5e04dbb7..6ee1ea02 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1675,7 +1675,7 @@ namespace { if ( !PvNode && !captureOrPromotion && !isCheck - && !dangerous + && !dangerous && !move_is_castle(move)) { // Move count based pruning @@ -1717,7 +1717,7 @@ namespace { ss->reduction = reduction(sp->depth, moveCount); if (ss->reduction) { - Value localAlpha = sp->alpha; + Value localAlpha = sp->alpha; Depth d = newDepth - ss->reduction; value = d < OnePly ? -qsearch(pos, ss+1, -(localAlpha+1), -localAlpha, Depth(0), threadID) : - search(pos, ss+1, -(localAlpha+1), -localAlpha, d, true, threadID); @@ -1736,12 +1736,12 @@ namespace { value = -search(pos, ss+1, -(localAlpha+1), -localAlpha, newDepth-ss->reduction, true, threadID); doFullDepthSearch = (value > localAlpha); } + ss->reduction = Depth(0); // Restore original reduction } // Step 15. Full depth search if (doFullDepthSearch) { - ss->reduction = Depth(0); Value localAlpha = sp->alpha; value = newDepth < OnePly ? -qsearch(pos, ss+1, -(localAlpha+1), -localAlpha, Depth(0), threadID) : - search(pos, ss+1, -(localAlpha+1), -localAlpha, newDepth, true, threadID); -- 2.39.2