From 692ec62aac6bfa0015f3e3e7aadd945d7a293806 Mon Sep 17 00:00:00 2001 From: rektdie Date: Sat, 14 Mar 2026 00:52:14 +0100 Subject: [PATCH] bench 1617873 --- source/search.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/search.cpp b/source/search.cpp index b9d8425..875463c 100644 --- a/source/search.cpp +++ b/source/search.cpp @@ -652,7 +652,7 @@ SearchResults PVS(Board& board, int depth, int alpha, int beta, int ply, SearchC // Fail high (beta cutoff) if (score >= beta) { - int bonus = historyBonusMultiplier * depth - historyBonusSub; + int bonus = historyBonusMultiplier * (depth + (!board.InCheck() && staticEval <= alpha)) - historyBonusSub; if (!currMove.IsCapture()) { ctx->killerMoves[1][ply] = ctx->killerMoves[0][ply]; -- 2.47.3