quietsSearched, quietCount, capturesSearched, captureCount, depth);
// Bonus for prior countermove that caused the fail low
- else if ( (depth >= 5 || PvNode || bestValue < alpha - 65 * depth)
- && !priorCapture)
+ else if (!priorCapture)
{
// Extra bonuses for PV/Cut nodes or bad fail lows
- int bonus = 1 + (PvNode || cutNode) + (bestValue < alpha - 88 * depth);
+ int bonus = (depth > 4) + (PvNode || cutNode) + (bestValue < alpha - 88 * depth);
update_continuation_histories(ss-1, pos.piece_on(prevSq), prevSq, stat_bonus(depth) * bonus);
}