X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=1d8139c41d8c764e974616ed5b54c8ee6cb3df34;hp=8581b0b3792819cb392b9913bfe04bd64896ee15;hb=eccccba0ce4e2d627cbe2adb1bf4a692d595ca99;hpb=351844061eddffac59e7a3c2d16af7ea9661bb3e diff --git a/src/search.cpp b/src/search.cpp index 8581b0b3..1d8139c4 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -728,8 +728,7 @@ namespace { && ttMove == MOVE_NONE && eval + razor_margin[depth / ONE_PLY] <= alpha) { - if ( depth <= ONE_PLY - && eval + razor_margin[3 * ONE_PLY] <= alpha) + if (depth <= ONE_PLY) return qsearch(pos, ss, alpha, beta, DEPTH_ZERO); Value ralpha = alpha - razor_margin[depth / ONE_PLY]; @@ -1588,8 +1587,8 @@ string UCI::pv(const Position& pos, Depth depth, Value alpha, Value beta) { /// fail high at root. We try hard to have a ponder move to return to the GUI, /// otherwise in case of 'ponder on' we have nothing to think on. -bool RootMove::extract_ponder_from_tt(Position& pos) -{ +bool RootMove::extract_ponder_from_tt(Position& pos) { + StateInfo st; bool ttHit;