Enable functionality of previous patch
authorMarco Costalba <mcostalba@gmail.com>
Mon, 21 Sep 2009 09:58:25 +0000 (10:58 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Tue, 22 Sep 2009 06:07:18 +0000 (07:07 +0100)
Now under-promotion checks are generated.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/movegen.cpp

index ce8f54cac77ef35a103a662a63c71f58c41f02cf..8ec7124b1095c5517fd0252dcbb40723c65a522f 100644 (file)
@@ -730,7 +730,7 @@ namespace {
     {
         // When generating checks consider under-promotion moves (both captures
         // and non captures) only if can give a discovery check.
-        Bitboard pp = GenerateChecks ? pawns & dc & EmptyBoardBB: pawns;
+        Bitboard pp = GenerateChecks ? pawns & dc : pawns;
         Bitboard enemyPieces = pos.pieces_of_color(opposite_color(Us));
 
         // Underpromotion captures in the a1-h8 (a8-h1 for black) direction