]> git.sesse.net Git - stockfish/blobdiff - src/pawns.cpp
Revert "Clarify the mapping of files to queenside"
[stockfish] / src / pawns.cpp
index d822ef4ef85e8387d7a206db3f85714646844ee2..f60411993fcc0877ed83a8a632f25945018aa9db 100644 (file)
@@ -198,7 +198,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;
 
-      int d = map_to_queenside(f);
+      int d = std::min(f, ~f);
       bonus += make_score(ShelterStrength[d][ourRank], 0);
 
       if (ourRank && (ourRank == theirRank - 1))