]> git.sesse.net Git - stockfish/blobdiff - src/movepick.cpp
movegen: revert see ordering in score_captures()
[stockfish] / src / movepick.cpp
index c0ec86775c48ce12f20d6b637072712905d7fcf4..1024cbffede226903eaf47f8f48e2001cabfe370 100644 (file)
@@ -215,9 +215,9 @@ void MovePicker::score_captures() {
   {
       Move m = moves[i].move;
       moves[i].score = pos.see(m);
-      //if (moves[i].score >= 0)
-      //    moves[i].score = move_promotion(m) ? QueenValueMidgame
-      //                   : pos.midgame_value_of_piece_on(move_to(m));
+      if (moves[i].score >= 0)
+          moves[i].score = move_promotion(m) ? QueenValueMidgame
+                         : pos.midgame_value_of_piece_on(move_to(m));
   }
 }