]> git.sesse.net Git - stockfish/blobdiff - src/movepick.cpp
Partially restore HistoryMax
[stockfish] / src / movepick.cpp
index ab79c22f2f5cf560cccf99b17d3b57df8dd1df70..aa6f7c19bc9ac9aa45b5368133d7010f155f32ee 100644 (file)
@@ -247,10 +247,10 @@ void MovePicker::score_evasions() {
   {
       m = cur->move;
       if ((seeScore = pos.see_sign(m)) < 0)
-          cur->score = seeScore - (1 << 29); // Be sure are at the bottom
+          cur->score = seeScore - History::MaxValue; // Be sure we are at the bottom
       else if (pos.move_is_capture(m))
           cur->score =  pos.midgame_value_of_piece_on(move_to(m))
-                      - pos.type_of_piece_on(move_from(m)) + (1 << 29);
+                      - pos.type_of_piece_on(move_from(m)) + History::MaxValue;
       else
           cur->score = H.value(pos.piece_on(move_from(m)), move_to(m));
   }