summaryrefslogtreecommitdiff
path: root/src/searchsup.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/searchsup.c')
-rw-r--r--src/searchsup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/searchsup.c b/src/searchsup.c
index 6f0d5f9..b532d9a 100644
--- a/src/searchsup.c
+++ b/src/searchsup.c
@@ -216,7 +216,7 @@ Return value:
ASSERT(mv.uMove);
ASSERT((uMoveNum > 0) || (uLegalMoves == 0));
if ((uRemainingDepth >= TWO_PLY) &&
- (iBeta == (iAlpha + 1)) &&
+ (FALSE == ctx->sPlyInfo[ctx->uPly - 1].fPvNode) &&
(uLegalMoves > 5) &&
(0 == iExtend) &&
(!IS_ESCAPING_CHECK(mv)) &&
@@ -1113,7 +1113,7 @@ WeShouldTryNullmovePruning(SEARCHER_THREAD_CONTEXT *ctx,
(pos->uNonPawnCount[pos->uToMove][0] > 2) &&
(FALSE == pi->fInCheck) &&
(iBeta != +INFINITY) &&
- (iBeta == iAlpha + 1)) // <--- TODO: test this one please...
+ (FALSE == pi->fPvNode)) // <--- TODO: test this one please...
{
if (uNullDepth <= 6 * ONE_PLY)
{