mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 00:33:09 +00:00
Small code cleanup in LMR
In a recent patch we added comparing capture history to a number for LMR of captures. Calling it via thisThread-> is not needed since capture history was already declared by this time - so removing makes code slightly shorter and easier to follow. closes https://github.com/official-stockfish/Stockfish/pull/3297 No functional change.
This commit is contained in:
parent
303713b560
commit
b1bb376c3c
1 changed files with 1 additions and 1 deletions
|
@ -1159,7 +1159,7 @@ moves_loop: // When in check, search starts from here
|
|||
|| moveCountPruning
|
||||
|| ss->staticEval + PieceValue[EG][pos.captured_piece()] <= alpha
|
||||
|| cutNode
|
||||
|| (!PvNode && !formerPv && thisThread->captureHistory[movedPiece][to_sq(move)][type_of(pos.captured_piece())] < 4506)
|
||||
|| (!PvNode && !formerPv && captureHistory[movedPiece][to_sq(move)][type_of(pos.captured_piece())] < 4506)
|
||||
|| thisThread->ttHitAverage < 432 * TtHitAverageResolution * TtHitAverageWindow / 1024))
|
||||
{
|
||||
Depth r = reduction(improving, depth, moveCount);
|
||||
|
|
Loading…
Add table
Reference in a new issue