From 4749616acb573f03722f50d00b0157f242addafc Mon Sep 17 00:00:00 2001 From: Fabian Fichter Date: Fri, 17 May 2019 15:21:47 +0200 Subject: [PATCH] Fix passed pawn evaluation No functional change for variants with promotion rank equal to 8. --- src/evaluate.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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); } -- 1.7.0.4