X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=6cc115fcf94371304aaabe328414b160e39ece66;hp=7abffb8779dda1df915c660577a6ebd9330eb559;hb=ee3f7b6b6e1a1051b32cedb38ac89b3458ff4ab2;hpb=37c2b5685efa8a0c3de04604c73e19f6e82dd6e8;ds=sidebyside diff --git a/src/search.cpp b/src/search.cpp index 7abffb87..6cc115fc 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1233,10 +1233,10 @@ moves_loop: // When in check, search starts from here r++; // Decrease/increase reduction for moves with a good/bad history (~30 Elo) - // If we are not in check use statScore, if we are in check + // If we are not in check use statScore, if we are in check // use sum of main history and first continuation history with an offset if (ss->inCheck) - r -= (thisThread->mainHistory[us][from_to(move)] + r -= (thisThread->mainHistory[us][from_to(move)] + (*contHist[0])[movedPiece][to_sq(move)] - 4333) / 16384; else r -= ss->statScore / 14884;