mirror of
https://github.com/sockspls/badfish
synced 2025-07-11 19:49:14 +00:00
Fix a silly warning on Intel compiler
No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
ca4e78db8d
commit
8de91be61e
1 changed files with 48 additions and 48 deletions
|
@ -626,9 +626,8 @@ namespace {
|
|||
evaluate_trapped_bishop_a1h1(pos, s, us, ei);
|
||||
}
|
||||
|
||||
if (Piece != ROOK && Piece != QUEEN)
|
||||
continue;
|
||||
|
||||
if (Piece == ROOK || Piece == QUEEN)
|
||||
{
|
||||
// Queen or rook on 7th rank
|
||||
them = opposite_color(us);
|
||||
|
||||
|
@ -638,11 +637,11 @@ namespace {
|
|||
ei.mgValue += Sign[us] * (Piece == ROOK ? MidgameRookOn7thBonus : MidgameQueenOn7thBonus);
|
||||
ei.egValue += Sign[us] * (Piece == ROOK ? EndgameRookOn7thBonus : EndgameQueenOn7thBonus);
|
||||
}
|
||||
}
|
||||
|
||||
// Special extra evaluation for rooks
|
||||
if (Piece != ROOK)
|
||||
continue;
|
||||
|
||||
if (Piece == ROOK)
|
||||
{
|
||||
// Open and half-open files
|
||||
f = square_file(s);
|
||||
if (ei.pi->file_is_half_open(us, f))
|
||||
|
@ -686,6 +685,7 @@ namespace {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
inline Bitboard shiftRowsDown(const Bitboard& b, int num) {
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue