X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fpawns.cpp;h=d7848fbd2f33364cc63232c11646701dc47f1a5a;hp=2b4f039ecf334857702fefd7edf2952aefcad675;hb=53d197b841731840891c783bb7e044f012db4aa7;hpb=14e23d520f251f28234a686a9d30d9711495dfef diff --git a/src/pawns.cpp b/src/pawns.cpp index 2b4f039e..d7848fbd 100644 --- a/src/pawns.cpp +++ b/src/pawns.cpp @@ -110,9 +110,8 @@ namespace { // full attack info to evaluate them. Include also not passed pawns // which could become passed after one or two pawn pushes when are // not attacked more times than defended. - if ( !(stoppers ^ lever ^ leverPush) - && (support || !more_than_one(lever)) - && popcount(phalanx) >= popcount(leverPush)) + if ( !(stoppers ^ lever) || + (!(stoppers ^ leverPush) && popcount(phalanx) >= popcount(leverPush))) e->passedPawns[Us] |= s; else if (stoppers == square_bb(s + Up) && r >= RANK_5)