]> git.sesse.net Git - stockfish/blobdiff - src/evaluate.cpp
Retire SquaresByColorBB[] and enum SquareColor
[stockfish] / src / evaluate.cpp
index 5d8d7b9902ec77fa1e1078e26b7e44725d44da7a..ab10597b6fe69c70241bdada24fdd4596404498c 100644 (file)
@@ -463,7 +463,7 @@ namespace {
     if (bonus && bit_is_set(ei.attackedBy[Us][PAWN], s))
     {
         if (   !pos.pieces(KNIGHT, Them)
-            && !(SquaresByColorBB[color_of(s)] & pos.pieces(BISHOP, Them)))
+            && !(same_color_squares(s) & pos.pieces(BISHOP, Them)))
             bonus += bonus + bonus / 2;
         else
             bonus += bonus / 2;