From: cj5716 <125858804+cj5716@users.noreply.github.com> Date: Thu, 15 Jun 2023 13:05:01 +0000 (+0800) Subject: Small cleanup X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=0187546275cb015d42a7d99789f2f6a650b03651;p=stockfish Small cleanup This non-functional change keeps formatting consistent. closes https://github.com/official-stockfish/Stockfish/pull/4623 Bench 2370027 --- diff --git a/src/search.cpp b/src/search.cpp index 5de950eb..8ace674d 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1463,9 +1463,7 @@ moves_loop: // When in check, search starts here // Step 4. Static evaluation of the position if (ss->inCheck) - { bestValue = futilityBase = -VALUE_INFINITE; - } else { if (ss->ttHit) @@ -1480,11 +1478,9 @@ moves_loop: // When in check, search starts here bestValue = ttValue; } else - { // In case of null move search use previous static eval with a different sign ss->staticEval = bestValue = (ss-1)->currentMove != MOVE_NULL ? evaluate(pos) : -(ss-1)->staticEval; - } // Stand pat. Return immediately if static value is at least beta if (bestValue >= beta)