1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-30 16:53:09 +00:00
This commit is contained in:
Joost VandeVondele 2018-11-07 16:55:25 +01:00 committed by Stéphane Nicolet
parent 9315ba60e6
commit df50ea5dc6

View file

@ -944,8 +944,8 @@ moves_loop: // When in check, search starts from here
extension = ONE_PLY; extension = ONE_PLY;
// Extension for king moves that change castling rights // Extension for king moves that change castling rights
if ( type_of(movedPiece) == KING if ( pos.can_castle(us)
&& pos.can_castle(us) && type_of(movedPiece) == KING
&& depth < 12 * ONE_PLY) && depth < 12 * ONE_PLY)
extension = ONE_PLY; extension = ONE_PLY;