]> git.sesse.net Git - stockfish/blobdiff - src/pawns.cpp
Small cleanups
[stockfish] / src / pawns.cpp
index 9981ac0140d03a49b688b2bf3dcddd567dc3579c..560fd76b171fc80306f92aee1716ae9cbcd15997 100644 (file)
@@ -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))