X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fevaluate.cpp;h=207892f4dea1fce081a588dcbab770b8c3aab18e;hb=4b3a0fdab03a7529ede42891963d3036712a0bd5;hp=bb9a2f97c0f5b7fddbe3c5aec66eb20e8aab332a;hpb=cbb1a8ed31679fe32d2694448a10b031390a32b3;p=stockfish diff --git a/src/evaluate.cpp b/src/evaluate.cpp index bb9a2f97..207892f4 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -767,7 +767,7 @@ Value do_evaluate(const Position& pos, Value& margin) { // be very big, and so capturing a single attacking piece can therefore // result in a score change far bigger than the value of the captured piece. score -= KingDanger[Us == Search::RootColor][attackUnits]; - margins[Us] += mg_value(KingDanger[Us == Search::RootColor][attackUnits]); + margins[Us] += mg_value(KingDanger[Us == Search::RootColor][attackUnits]) / 2; } if (Trace)