X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=8d325a8e71d7b7faca4c8cdb0fec89a6840571ea;hp=1303e1fb08f7c587ea02b192fca7d8ec32c7e90c;hb=bbf9daa175fc629790246866882f4d6797ab06ef;hpb=13d06edb8498bb32b0fd7bda82a87eb4874385af diff --git a/src/search.cpp b/src/search.cpp index 1303e1fb..8d325a8e 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -584,8 +584,7 @@ namespace { if ( Threads.stop.load(std::memory_order_relaxed) || pos.is_draw(ss->ply) || ss->ply >= MAX_PLY) - return (ss->ply >= MAX_PLY && !inCheck) ? evaluate(pos) - 10 * ((ss-1)->statScore > 0) - : VALUE_DRAW; + return (ss->ply >= MAX_PLY && !inCheck) ? evaluate(pos) : VALUE_DRAW; // Step 3. Mate distance pruning. Even if we mate at the next move our score // would be at best mate_in(ss->ply+1), but if alpha is already bigger because