Simplify stat eval history adjustment further

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

bench 2074807
This commit is contained in:
Shawn Xu
2025-05-26 00:28:18 -07:00
committed by Joost VandeVondele
parent 29b0c07ac8
commit d0212906bd

View File

@@ -807,7 +807,7 @@ Value Search::Worker::search(
}
// Use static evaluation difference to improve quiet move ordering
if (((ss - 1)->currentMove).is_ok() && !(ss - 1)->inCheck && !priorCapture && ttData.depth <= 2)
if (((ss - 1)->currentMove).is_ok() && !(ss - 1)->inCheck && !priorCapture && !ttHit)
{
int bonus = std::clamp(-10 * int((ss - 1)->staticEval + ss->staticEval), -1858, 1492) + 661;
thisThread->mainHistory[~us][((ss - 1)->currentMove).from_to()] << bonus * 1057 / 1024;