X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fpawns.cpp;h=560fd76b171fc80306f92aee1716ae9cbcd15997;hb=ddcbacd04d1c860e808202ce8c1206c8acdca627;hp=9981ac0140d03a49b688b2bf3dcddd567dc3579c;hpb=37e38639279bf58558b92932739da57e7c2e3bdc;p=stockfish diff --git a/src/pawns.cpp b/src/pawns.cpp index 9981ac01..560fd76b 100644 --- a/src/pawns.cpp +++ b/src/pawns.cpp @@ -202,7 +202,7 @@ Score Entry::evaluate_shelter(const Position& pos, Square ksq) { b = theirPawns & file_bb(f); int theirRank = b ? relative_rank(Us, frontmost_sq(Them, b)) : 0; - File d = map_to_queenside(f); + File d = edge_distance(f); bonus += make_score(ShelterStrength[d][ourRank], 0); if (ourRank && (ourRank == theirRank - 1))