X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fsearch.cpp;h=e113068c408561c402f47513e685bb1b874b25a4;hb=4111f36f45fbb5da68142a0be1b4d033d50e7d93;hp=d0bbc9675c9618ff780cb51b3f89a8eb8abf31f6;hpb=df50ea5dc635457dd34fd08c0d332889483f5e7f;p=stockfish diff --git a/src/search.cpp b/src/search.cpp index d0bbc967..e113068c 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -187,6 +187,7 @@ void Search::clear() { Time.availableNodes = 0; TT.clear(); Threads.clear(); + Tablebases::init(Options["SyzygyPath"]); // Free up mapped files } @@ -943,10 +944,8 @@ moves_loop: // When in check, search starts from here && pos.see_ge(move)) extension = ONE_PLY; - // Extension for king moves that change castling rights - if ( pos.can_castle(us) - && type_of(movedPiece) == KING - && depth < 12 * ONE_PLY) + else if ( pos.can_castle(us) // Extension for king moves that change castling rights + && type_of(movedPiece) == KING) extension = ONE_PLY; // Calculate new depth for this move