X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fevaluate.cpp;h=d6af118bf36a7c6fd094a6ecf2dfd6677e59fed0;hp=068aad9a7d590c7ccbb74c691148ec95b751b641;hb=716a145a6cc9257c3b45a41030913220c3878249;hpb=6fed8ff22ab618c89de2bb69bbc379816692baf4 diff --git a/src/evaluate.cpp b/src/evaluate.cpp index 068aad9a..d6af118b 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -577,6 +577,7 @@ namespace { Square s = pop_lsb(&b); assert(pos.pawn_passed(Us, s)); + assert(!(pos.pieces(PAWN) & forward_bb(Us, s))); int r = relative_rank(Us, s) - RANK_2; int rr = r * (r - 1); @@ -722,7 +723,7 @@ namespace { // Endgame with opposite-colored bishops, but also other pieces. Still // a bit drawish, but not as drawish as with only the two bishops. else - sf = ScaleFactor(46 * sf / SCALE_FACTOR_NORMAL); + sf = ScaleFactor(46); } // Endings where weaker side can place his king in front of the opponent's // pawns are drawish.