From 6ccd416840d1c4dbb779e4e9f549f7bd74edaad5 Mon Sep 17 00:00:00 2001 From: rektdie Date: Tue, 5 Aug 2025 23:44:31 +0200 Subject: [PATCH] removed unnecessary condition | bench 4559188 --- source/search.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/source/search.cpp b/source/search.cpp index 03bb856..d154728 100644 --- a/source/search.cpp +++ b/source/search.cpp @@ -660,7 +660,6 @@ SearchResults PVS(Board& board, int depth, int alpha, int beta, int ply, SearchC if (!ctx->excluded) { if (!board.InCheck() && (results.bestMove.IsQuiet()) - && !(nodeType == CutNode && results.score <= staticEval) && !(nodeType == AllNode && results.score >= staticEval)) { int corrHistBonus = std::clamp(results.score - staticEval, -CORRHIST_LIMIT, CORRHIST_LIMIT);