mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 00:56:39 +08:00
Remove a redundant check in passed pawn eval
When first condition is met then second one is always true. Spotted by Ralph Stoesser. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -861,8 +861,7 @@ namespace {
|
|||||||
// value if the other side has a rook or queen.
|
// value if the other side has a rook or queen.
|
||||||
if (square_file(s) == FILE_A || square_file(s) == FILE_H)
|
if (square_file(s) == FILE_A || square_file(s) == FILE_H)
|
||||||
{
|
{
|
||||||
if ( pos.non_pawn_material(Them) <= KnightValueMidgame
|
if (pos.non_pawn_material(Them) <= KnightValueMidgame)
|
||||||
&& pos.piece_count(Them, KNIGHT) <= 1)
|
|
||||||
ebonus += ebonus / 4;
|
ebonus += ebonus / 4;
|
||||||
else if (pos.pieces(ROOK, QUEEN, Them))
|
else if (pos.pieces(ROOK, QUEEN, Them))
|
||||||
ebonus -= ebonus / 4;
|
ebonus -= ebonus / 4;
|
||||||
|
|||||||
Reference in New Issue
Block a user