X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fevaluate.cpp;h=d349242f50084892206a380a226b65cefadfb56e;hb=24e6ed907b9896ab12b85896732ec422a6b7f8b7;hp=7695b3bb4bb39fe6ee11a94d88585e7c55da33ce;hpb=ff95bbd41f88bc3c4002218fd14b2d869c6f7d8c;p=stockfish diff --git a/src/evaluate.cpp b/src/evaluate.cpp index 7695b3bb..d349242f 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -423,7 +423,7 @@ void read_weights(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 (get_option_value_bool("UCI_AnalyseMode")) + if (Options["UCI_AnalyseMode"].value()) Weights[kingDangerUs] = Weights[kingDangerThem] = (Weights[kingDangerUs] + Weights[kingDangerThem]) / 2; init_safety(); @@ -920,8 +920,8 @@ namespace { Score weight_option(const std::string& mgOpt, const std::string& egOpt, Score internalWeight) { // Scale option value from 100 to 256 - int mg = get_option_value_int(mgOpt) * 256 / 100; - int eg = get_option_value_int(egOpt) * 256 / 100; + int mg = Options[mgOpt].value() * 256 / 100; + int eg = Options[egOpt].value() * 256 / 100; return apply_weight(make_score(mg, eg), internalWeight); }