]> git.sesse.net Git - stockfish/commitdiff
Remove setting of static to none if in check in qsearch
authorViren6 <94880762+Viren6@users.noreply.github.com>
Tue, 13 Jun 2023 21:26:20 +0000 (22:26 +0100)
committerJoost VandeVondele <Joost.VandeVondele@gmail.com>
Wed, 14 Jun 2023 16:33:56 +0000 (18:33 +0200)
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.

AUTHORS
src/search.cpp

diff --git a/AUTHORS b/AUTHORS
index a89dc1304add3d93862f2bb31eef1eff962ee7af..ff224954707197ba589981a606486f6eb95a0acb 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -215,6 +215,7 @@ tttak
 Unai Corzo (unaiic)
 Uri Blass (uriblass)
 Vince Negri (cuddlestmonkey)
+Viren
 windfishballad
 xefoci7612
 zz4032
index d3b5642a2363f576ecbd4c23f32ee461e9418fcf..5de950eb147dc2d5a64080055b097b1a3eeb60f8 100644 (file)
@@ -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