From: Fabian Fichter Date: Fri, 17 May 2019 13:21:47 +0000 (+0200) Subject: Fix passed pawn evaluation X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=4749616acb573f03722f50d00b0157f242addafc;p=fairystockfish.git Fix passed pawn evaluation No functional change for variants with promotion rank equal to 8. --- diff --git a/src/evaluate.cpp b/src/evaluate.cpp index 37b86eb..8e63e10 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -751,7 +751,7 @@ namespace { - king_proximity(Us, blockSq) * 2) * w); // If blockSq is not the queening square then consider also a second push - if (r != pos.promotion_rank() - 1) + if (r != RANK_7) bonus -= make_score(0, king_proximity(Us, blockSq + Up) * w); }