projects
/
fairystockfish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
9315ba6
)
fixup
author
Joost VandeVondele
<Joost.VandeVondele@gmail.com>
Wed, 7 Nov 2018 15:55:25 +0000 (16:55 +0100)
committer
Stéphane Nicolet
<cassio@free.fr>
Thu, 8 Nov 2018 15:20:23 +0000 (16:20 +0100)
src/search.cpp
patch
|
blob
|
history
diff --git
a/src/search.cpp
b/src/search.cpp
index
8a32e82
..
d0bbc96
100644
(file)
--- a/
src/search.cpp
+++ b/
src/search.cpp
@@
-944,8
+944,8
@@
moves_loop: // When in check, search starts from here
extension = ONE_PLY;
// Extension for king moves that change castling rights
- if ( type_of(movedPiece) == KING
- && pos.can_castle(us)
+ if ( pos.can_castle(us)
+ && type_of(movedPiece) == KING
&& depth < 12 * ONE_PLY)
extension = ONE_PLY;