Retire queen_attacks_bb()
[stockfish] / src / bitboard.cpp
index 138d8c72b0c51dbe324397c98c1a13d65b5736f1..c56d8e902ec4fb794098c0faf99b6db2ba58718f 100644 (file)
@@ -227,7 +227,7 @@ void bitboards_init() {
   {
       PseudoAttacks[BISHOP][s] = bishop_attacks_bb(s, 0);
       PseudoAttacks[ROOK][s]   = rook_attacks_bb(s, 0);
-      PseudoAttacks[QUEEN][s]  = queen_attacks_bb(s, 0);
+      PseudoAttacks[QUEEN][s]  = PseudoAttacks[BISHOP][s] | PseudoAttacks[ROOK][s];
   }
 
   for (Square s1 = SQ_A1; s1 <= SQ_H8; s1++)