X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmovepick.cpp;h=aa6f7c19bc9ac9aa45b5368133d7010f155f32ee;hp=ab79c22f2f5cf560cccf99b17d3b57df8dd1df70;hb=877b468e3e8a3b7f7482266007237c6974f7f282;hpb=20524070901db89bd6e97b54d28dc3a2f717b0e3 diff --git a/src/movepick.cpp b/src/movepick.cpp index ab79c22f..aa6f7c19 100644 --- a/src/movepick.cpp +++ b/src/movepick.cpp @@ -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)); }