]> git.sesse.net Git - stockfish/blobdiff - src/evaluate.cpp
Always remember the ttMove
[stockfish] / src / evaluate.cpp
index 57491f343f9a6ee8fb5133aaba96beba4279d643..a2e5ef7b5711a985c413924329ded437f9c9f4d4 100644 (file)
@@ -638,11 +638,6 @@ namespace {
             }
         } // r > RANK_3
 
-        // Scale down bonus for candidate passers which need more than one
-        // pawn push to become passed.
-        if (!pos.pawn_passed(Us, s + Up))
-            bonus = bonus / 2;
-
         score += bonus - PassedFile * edge_distance(file_of(s));
     }
 
@@ -751,7 +746,7 @@ namespace {
     {
         if (   pos.opposite_bishops()
             && pos.non_pawn_material() == 2 * BishopValueMg)
-            sf = 22 ;
+            sf = 22;
         else
             sf = std::min(sf, 36 + (pos.opposite_bishops() ? 2 : 7) * pos.count<PAWN>(strongSide));