X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=85817cd16f36c98183e57503a685215ded87feab;hp=d555b62ee6289d534e822ace5e6f295602702eee;hb=35b77b120ef5ca5d9db848e02e42642b1a93e982;hpb=ebe021f6a5da63cf0e31da89d4c21e9b5f673fcd diff --git a/src/search.cpp b/src/search.cpp index d555b62e..85817cd1 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -97,8 +97,8 @@ namespace { Move best = MOVE_NONE; }; - // EasyMoveManager structure is used to detect an 'easy move'. When the PV is - // stable across multiple search iterations, we can quickly return the best move. + // EasyMoveManager structure is used to detect an 'easy move'. When the PV is stable + // across multiple search iterations, we can quickly return the best move. struct EasyMoveManager { void clear() { @@ -635,7 +635,7 @@ namespace { // Penalty for a quiet ttMove that fails low else if (!pos.capture_or_promotion(ttMove)) { - Value penalty = -stat_bonus(depth + ONE_PLY); + Value penalty = -stat_bonus(depth); thisThread->history.update(pos.side_to_move(), ttMove, penalty); update_cm_stats(ss, pos.moved_piece(ttMove), to_sq(ttMove), penalty); }