From 08ed4c90db31959521b7ef3186c026edd1e90307 Mon Sep 17 00:00:00 2001 From: Disservin Date: Fri, 27 Oct 2023 17:33:41 +0200 Subject: [PATCH] Format Code No functional change --- src/search.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/search.cpp b/src/search.cpp index 65b27d16..b7b51e0b 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -768,9 +768,12 @@ Value search(Position& pos, Stack* ss, Value alpha, Value beta, Depth depth, boo { if (!priorCapture && prevSq != SQ_NONE) { - int bonus = (depth > 6) + (PvNode || cutNode) + (value < alpha - 658) + ((ss-1)->moveCount > 11); - update_continuation_histories(ss-1, pos.piece_on(prevSq), prevSq, stat_bonus(depth) * bonus); - thisThread->mainHistory[~us][from_to((ss-1)->currentMove)] << stat_bonus(depth) * bonus * 57 / 100; + int bonus = (depth > 6) + (PvNode || cutNode) + (value < alpha - 658) + + ((ss - 1)->moveCount > 11); + update_continuation_histories(ss - 1, pos.piece_on(prevSq), prevSq, + stat_bonus(depth) * bonus); + thisThread->mainHistory[~us][from_to((ss - 1)->currentMove)] + << stat_bonus(depth) * bonus * 57 / 100; } return value; } -- 2.39.2