X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fmaterial.cpp;h=64a5bff033f9e7579fa33c9c94c3ea3f9dec0b22;hb=4bd24da161fa7fdac4283438e86e9fd923c3493a;hp=921e3007d0733788de389a676da524919ab06016;hpb=759b3c79cf94d101163f646b1eb2a9f9c64293ab;p=stockfish diff --git a/src/material.cpp b/src/material.cpp index 921e3007..64a5bff0 100644 --- a/src/material.cpp +++ b/src/material.cpp @@ -152,7 +152,7 @@ Entry* probe(const Position& pos) { // OK, we didn't find any special evaluation function for the current material // configuration. Is there a suitable specialized scaling function? - EndgameBase* sf; + const EndgameBase* sf; if ((sf = pos.this_thread()->endgames.probe(key)) != nullptr) { @@ -206,12 +206,6 @@ Entry* probe(const Position& pos) { e->factor[BLACK] = uint8_t(npm_b < RookValueMg ? SCALE_FACTOR_DRAW : npm_w <= BishopValueMg ? 4 : 14); - if (pos.count(WHITE) == 1 && npm_w - npm_b <= BishopValueMg) - e->factor[WHITE] = (uint8_t) SCALE_FACTOR_ONEPAWN; - - if (pos.count(BLACK) == 1 && npm_b - npm_w <= BishopValueMg) - e->factor[BLACK] = (uint8_t) SCALE_FACTOR_ONEPAWN; - // Evaluate the material imbalance. We use PIECE_TYPE_NONE as a place holder // for the bishop pair "extended piece", which allows us to be more flexible // in defining bishop pair bonuses.