]> git.sesse.net Git - stockfish/commitdiff
Fix book file regression
authorMarco Costalba <mcostalba@gmail.com>
Sat, 26 May 2012 09:11:59 +0000 (10:11 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Sat, 26 May 2012 09:14:08 +0000 (10:14 +0100)
Revision 2aac860db3d04881103a3b0d0 of 27 / 4 / 2012
changed can_castle() signatures from bool to int and
this broke the code that calculates polyglot hash key
in book.cpp

Instead of directly fixing the code we prefer to change
castling rights definitions to align to the polyglot ones
(as we did in previous patch). After this step we can simply
take internal castle rights as they are and use them
directly to calculate polyglot book hash key, as we do
in this patch that fixes the regression.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>

No differences found