projects
/
fairystockfish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
e748f29
)
Remove redundant check
author
Fabian Fichter
<ianfab@users.noreply.github.com>
Wed, 26 Dec 2018 18:22:29 +0000 (19:22 +0100)
committer
Fabian Fichter
<ianfab@users.noreply.github.com>
Wed, 26 Dec 2018 18:22:29 +0000 (19:22 +0100)
No functional change.
src/evaluate.cpp
patch
|
blob
|
history
diff --git
a/src/evaluate.cpp
b/src/evaluate.cpp
index
d817eb3
..
454b3ce
100644
(file)
--- a/
src/evaluate.cpp
+++ b/
src/evaluate.cpp
@@
-450,7
+450,7
@@
namespace {
Score score = SCORE_ZERO;
- if (pos.piece_drops() && pos.count_in_hand(Us, pt))
+ if (pos.count_in_hand(Us, pt))
{
Bitboard b = pos.drop_region(Us, pt) & ~pos.pieces() & (~attackedBy2[Them] | attackedBy[Us][ALL_PIECES]);
if (b & kingRing[Them])