X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=e113068c408561c402f47513e685bb1b874b25a4;hp=07680f1d1830e4447c7f61da25be41407bc69510;hb=4111f36f45fbb5da68142a0be1b4d033d50e7d93;hpb=0e508f30bb2129f87b41ab3d721fd0400631f6fc diff --git a/src/search.cpp b/src/search.cpp index 07680f1d..e113068c 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -944,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