X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmaterial.cpp;h=4cfda03e4f3dcab3ee3bfed56553ea379e775826;hp=fb392093be6987f2c56257fefe8b7a636795aadf;hb=96362fe3df141eeead4bdb863d2bb2d891886abf;hpb=9afa1d73306cb98e95acec5daf4efd65e592ceff diff --git a/src/material.cpp b/src/material.cpp index fb392093..4cfda03e 100644 --- a/src/material.cpp +++ b/src/material.cpp @@ -68,7 +68,7 @@ namespace { && pos.non_pawn_material(us) >= RookValueMg; } - bool is_KBPsKs(const Position& pos, Color us) { + bool is_KBPsK(const Position& pos, Color us) { return pos.non_pawn_material(us) == BishopValueMg && pos.count(us) == 1 && pos.count(us) >= 1; @@ -165,7 +165,7 @@ Entry* probe(const Position& pos) { // case we don't return after setting the function. for (Color c = WHITE; c <= BLACK; ++c) { - if (is_KBPsKs(pos, c)) + if (is_KBPsK(pos, c)) e->scalingFunction[c] = &ScaleKBPsK[c]; else if (is_KQKRPs(pos, c))