diff --git a/src/search.cpp b/src/search.cpp index c59085dd..bb0994cf 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -489,7 +489,7 @@ Value Worker::search( } if (!PV_NODE && !is_in_check && depth <= tuned::rfp_depth && !excluded - && tt_adjusted_eval >= beta + tuned::rfp_margin * depth) { + && tt_adjusted_eval >= beta + tuned::rfp_margin * (depth - improving)) { return tt_adjusted_eval; }