From 9bb03b48afa12e13032c8e4c7b8c6e462e701503 Mon Sep 17 00:00:00 2001 From: rooklift <16438795+rooklift@users.noreply.github.com> Date: Sat, 24 Jul 2021 11:21:52 +0100 Subject: [PATCH] rm unneeded arg --- src/95_hub.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/95_hub.js b/src/95_hub.js index 36b3bbd0..1147e7fd 100644 --- a/src/95_hub.js +++ b/src/95_hub.js @@ -951,7 +951,7 @@ let hub_props = { // Until we receive uciok and readyok, set_behaviour() does nothing and set_search_desired() ignores calls, so "go" cannot have been sent. - this.engine_send_all_options(this.engine.leelaish); + this.engine_send_all_options(); this.engine.send("isready"); return; } @@ -1297,18 +1297,18 @@ let hub_props = { return true; }, - engine_send_all_options: function(leelaish) { + engine_send_all_options: function() { // The engine should never have been given a "go" before this. - let standard_engine_options = leelaish ? standard_lc0_options : standard_ab_options; + let standard_engine_options = this.engine.leelaish ? standard_lc0_options : standard_ab_options; // Note: for each key, we could check if the option is known, but that // would be sketchy because we use secret stuff like "LogLiveStats". // But we can do it for non-Leelaish engines... for (let key of Object.keys(standard_engine_options)) { - if (leelaish || this.engine.known(key)) { + if (this.engine.leelaish || this.engine.known(key)) { this.engine.setoption(key, standard_engine_options[key]); } }