From: Marco Costalba Date: Sun, 1 May 2011 09:31:27 +0000 (+0100) Subject: Remove redundancy in evaluate_unstoppable_pawns() X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=75acd52415209296fad778db41209170734647dc;ds=sidebyside 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 --- diff --git a/src/evaluate.cpp b/src/evaluate.cpp index 9c2b70a7..8bdf1936 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -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;