]> git.sesse.net Git - stockfish/blobdiff - src/movepick.cpp
Rename OnePly in ONE_PLY
[stockfish] / src / movepick.cpp
index dcc94015d67560b916bdaa01b3775c982edef8ac..e3cc1880ce55cd5902b5c86e9f38ad8f3fc77ab0 100644 (file)
@@ -94,7 +94,7 @@ MovePicker::MovePicker(const Position& p, Move ttm, Depth d, const History& h,
   {
       // Consider sligtly negative captures as good if at low
       // depth and far from beta.
-      if (ss && ss->eval < beta - PawnValueMidgame && d < 3 * OnePly)
+      if (ss && ss->eval < beta - PawnValueMidgame && d < 3 * ONE_PLY)
           badCaptureThreshold = -PawnValueMidgame;
 
       phasePtr = MainSearchPhaseTable;
@@ -228,7 +228,7 @@ void MovePicker::score_noncaptures() {
       from = move_from(m);
       to = move_to(m);
       piece = pos.piece_on(from);
-      cur->score = H.value(piece, to);
+      cur->score = H.value(piece, to) + H.gain(piece, to);
   }
 }