Remove redundancy in evaluate_unstoppable_pawns()
authorMarco Costalba <mcostalba@gmail.com>
Sun, 1 May 2011 09:31:27 +0000 (10:31 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Sun, 1 May 2011 09:31:27 +0000 (10:31 +0100)
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>
src/evaluate.cpp

index 9c2b70a7acb90509200b56c42f1a287bb44155a2..8bdf193653dec007ed41a8df7a40768dbb0511ad 100644 (file)
@@ -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.
 
             // 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;
 
             {
                 supBB = in_front_bb(winnerSide, s2 + pawn_push(winnerSide)) & neighboring_files_bb(s1) & candidates;