mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-23 02:27:00 +08:00
Small clean-up, Sept 2021
Closes https://github.com/official-stockfish/Stockfish/pull/3485 No functional change
This commit is contained in:
committed by
Stéphane Nicolet
parent
54a989930e
commit
f21a66f70d
@@ -790,7 +790,6 @@ namespace {
|
||||
else
|
||||
{
|
||||
// In case of null move search use previous static eval with a different sign
|
||||
// and addition of two tempos
|
||||
if ((ss-1)->currentMove != MOVE_NULL)
|
||||
ss->staticEval = eval = evaluate(pos);
|
||||
else
|
||||
@@ -1187,6 +1186,7 @@ moves_loop: // When in check, search starts here
|
||||
{
|
||||
Depth r = reduction(improving, depth, moveCount, rangeReduction > 2);
|
||||
|
||||
// Decrease reduction if on the PV (~1 Elo)
|
||||
if (PvNode)
|
||||
r--;
|
||||
|
||||
@@ -1499,7 +1499,6 @@ moves_loop: // When in check, search starts here
|
||||
}
|
||||
else
|
||||
// In case of null move search use previous static eval with a different sign
|
||||
// and addition of two tempos
|
||||
ss->staticEval = bestValue =
|
||||
(ss-1)->currentMove != MOVE_NULL ? evaluate(pos)
|
||||
: -(ss-1)->staticEval;
|
||||
|
||||
Reference in New Issue
Block a user