X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fevaluate.cpp;h=5e278242b742ddd2457d0a7f2312b63e47f5b081;hp=5d8d7b9902ec77fa1e1078e26b7e44725d44da7a;hb=4554d8b2ac1ad260c3f7123b2a7d3a3385fa8306;hpb=c2d42ea8339b49e52a116e488214a14fda09d413 diff --git a/src/evaluate.cpp b/src/evaluate.cpp index 5d8d7b99..5e278242 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -412,7 +412,7 @@ void read_evaluation_uci_options(Color us) { // If running in analysis mode, make sure we use symmetrical king safety. We do this // by replacing both Weights[kingDangerUs] and Weights[kingDangerThem] by their average. - if (Options["UCI_AnalyseMode"].value()) + if (Options["UCI_AnalyseMode"]) Weights[kingDangerUs] = Weights[kingDangerThem] = (Weights[kingDangerUs] + Weights[kingDangerThem]) / 2; init_safety(); @@ -463,7 +463,7 @@ namespace { if (bonus && bit_is_set(ei.attackedBy[Us][PAWN], s)) { if ( !pos.pieces(KNIGHT, Them) - && !(SquaresByColorBB[color_of(s)] & pos.pieces(BISHOP, Them))) + && !(same_color_squares(s) & pos.pieces(BISHOP, Them))) bonus += bonus + bonus / 2; else bonus += bonus / 2; @@ -1101,8 +1101,8 @@ namespace { Score weight_option(const std::string& mgOpt, const std::string& egOpt, Score internalWeight) { // Scale option value from 100 to 256 - int mg = Options[mgOpt].value() * 256 / 100; - int eg = Options[egOpt].value() * 256 / 100; + int mg = Options[mgOpt] * 256 / 100; + int eg = Options[egOpt] * 256 / 100; return apply_weight(make_score(mg, eg), internalWeight); }