mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 16:53:09 +00:00
fixup
This commit is contained in:
parent
9315ba60e6
commit
df50ea5dc6
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue