X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fpawns.cpp;h=75e6ad7a7dfc9f50b675c9b0eb6c8b4a10f308f4;hp=a2063a8f8323cd9ad420e81d8cfe60cd93099ff6;hb=ca4e399ea6d88f8f71c8fd692566223496b10f78;hpb=5c58f6712667076babe9ebaac1689436721c42be diff --git a/src/pawns.cpp b/src/pawns.cpp index a2063a8f..75e6ad7a 100644 --- a/src/pawns.cpp +++ b/src/pawns.cpp @@ -106,7 +106,7 @@ namespace { phalanx = neighbours & rank_bb(s); support = neighbours & rank_bb(s - Up); - e->blockedCount[Us] += bool(blocked); + e->blockedCount[Us] += blocked || more_than_one(leverPush); // A pawn is backward when it is behind all pawns of the same color on // the adjacent files and cannot safely advance.