From 2b8bb8e226b3229f36d6894480e69464aff3ac69 Mon Sep 17 00:00:00 2001 From: Joost VandeVondele Date: Wed, 5 Aug 2020 07:44:47 +0200 Subject: [PATCH] Revert stray functional part of 6e2236c37a3c9a3958b8355ffb0c433f53400f59 --- src/search.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/search.cpp b/src/search.cpp index d3038f91..d1dc4489 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1012,7 +1012,7 @@ moves_loop: // When in check, search starts from here moveCountPruning = moveCount >= futility_move_count(improving, depth); // Reduced depth of the next LMR search - int lmrDepth = std::max(newDepth - reduction(improving, depth, moveCount), 0) + (type_of(movedPiece) == KING); + int lmrDepth = std::max(newDepth - reduction(improving, depth, moveCount), 0); if ( !captureOrPromotion && !givesCheck)