From: Viren6 <94880762+Viren6@users.noreply.github.com> Date: Tue, 13 Jun 2023 21:26:20 +0000 (+0100) Subject: Remove setting of static to none if in check in qsearch X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=887bbd8b3df8a01307a38bfe529a49842f810a9c Remove setting of static to none if in check in qsearch Small simplification Passed non-regression STC: https://tests.stockfishchess.org/tests/view/6487924d713491385c8034ae LLR: 2.93 (-2.94,2.94) <-1.75,0.25> Total: 59616 W: 15885 L: 15703 D: 28028 Ptnml(0-2): 144, 6130, 17086, 6296, 152 closes https://github.com/official-stockfish/Stockfish/pull/4618 No functional change. --- diff --git a/AUTHORS b/AUTHORS index a89dc130..ff224954 100644 --- a/AUTHORS +++ b/AUTHORS @@ -215,6 +215,7 @@ tttak Unai Corzo (unaiic) Uri Blass (uriblass) Vince Negri (cuddlestmonkey) +Viren windfishballad xefoci7612 zz4032 diff --git a/src/search.cpp b/src/search.cpp index d3b5642a..5de950eb 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1464,7 +1464,6 @@ moves_loop: // When in check, search starts here // Step 4. Static evaluation of the position if (ss->inCheck) { - ss->staticEval = VALUE_NONE; bestValue = futilityBase = -VALUE_INFINITE; } else