projects
/
fairystockfish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
9204a60
)
Drop a magic in book.cpp
author
Marco Costalba
<mcostalba@gmail.com>
Sat, 22 Sep 2012 09:08:10 +0000 (11:08 +0200)
committer
Marco Costalba
<mcostalba@gmail.com>
Sat, 22 Sep 2012 09:19:10 +0000 (11:19 +0200)
Mask out move's spacial flags without relying
on internal Move representation.
No functional change.
src/book.cpp
patch
|
blob
|
history
diff --git
a/src/book.cpp
b/src/book.cpp
index
b723705
..
1c2d30e
100644
(file)
--- a/
src/book.cpp
+++ b/
src/book.cpp
@@
-440,7
+440,7
@@
Move PolyglotBook::probe(const Position& pos, const string& fName, bool pickBest
// Add 'special move' flags and verify it is legal
for (MoveList<LEGAL> ml(pos); !ml.end(); ++ml)
- if (move == (ml.move() & 0x3FFF))
+ if (move == (ml.move() ^ type_of(ml.move())))
return ml.move();
return MOVE_NONE;