mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-19 08:36:33 +08:00
Remove redundancy in evaluate_unstoppable_pawns()
Spotted by Fruity http://open-chess.org/viewtopic.php?f=5&t=1156&start=20 No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -1014,7 +1014,7 @@ namespace {
|
||||
|
||||
// Check pawns that can give support to overcome obstacle, for instance
|
||||
// black pawns: a4, b4 white: b2 then pawn in b4 is giving support.
|
||||
if (!opposed && square_file(s1) != square_file(s2))
|
||||
if (!opposed)
|
||||
{
|
||||
supBB = in_front_bb(winnerSide, s2 + pawn_push(winnerSide)) & neighboring_files_bb(s1) & candidates;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user