X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fevaluate.cpp;h=69df7629b881f1ce9e197d4b3b1695a7437379a6;hp=ae52d203ffc0b565b317aa1d945de1bd468b71b3;hb=069073ea6882ccb27fe4b571ed08ebe6a4ad8c65;hpb=4b926f227d00076439fbbc60e29c60403d992037 diff --git a/src/evaluate.cpp b/src/evaluate.cpp index ae52d203..69df7629 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -626,13 +626,13 @@ namespace { } - // evaluate_unstoppable_pawns() scores the most advanced among the passed and - // candidate pawns. In case both players have no pieces but pawns, this is - // somewhat related to the possibility that pawns are unstoppable. + // evaluate_unstoppable_pawns() scores the most advanced passed pawn. In case + // both players have no pieces but pawns, this is somewhat related to the + // possibility that pawns are unstoppable. Score evaluate_unstoppable_pawns(Color us, const EvalInfo& ei) { - Bitboard b = ei.pi->passed_pawns(us) | ei.pi->candidate_pawns(us); + Bitboard b = ei.pi->passed_pawns(us); return b ? Unstoppable * int(relative_rank(us, frontmost_sq(us, b))) : SCORE_ZERO; }