1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-30 16:53:09 +00:00

Small cleanup

This non-functional change keeps formatting consistent.

closes https://github.com/official-stockfish/Stockfish/pull/4623

Bench 2370027
This commit is contained in:
cj5716 2023-06-15 21:05:01 +08:00 committed by Joost VandeVondele
parent 32d3284df5
commit 0187546275

View file

@ -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)