]> git.sesse.net Git - stockfish/blobdiff - src/psqt.cpp
Revert "Clarify the mapping of files to queenside"
[stockfish] / src / psqt.cpp
index 13e69499b185afd9760d93f4d26edbfec5426f7e..36d99feb7e05280ce9ee6aacc9ab84aec8ebd8d8 100644 (file)
@@ -119,7 +119,7 @@ void init() {
 
       for (Square s = SQ_A1; s <= SQ_H8; ++s)
       {
-          File f = map_to_queenside(file_of(s));
+          File f = std::min(file_of(s), ~file_of(s));
           psq[ pc][ s] = score + (type_of(pc) == PAWN ? PBonus[rank_of(s)][file_of(s)]
                                                       : Bonus[pc][rank_of(s)][f]);
           psq[~pc][~s] = -psq[pc][s];