Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
fohristiwhirl committed Feb 17, 2021
1 parent 15c1e8d commit 007c8ca
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/95_renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ function NewRenderer() {
if (new_game_flag) {
this.node_to_clean = null;
this.leela_lock_node = null;
this.set_behaviour("halt"); // Will cause "stop" to be sent
this.set_behaviour("halt"); // Will cause "stop" to be sent.
this.engine.send("ucinewgame"); // Must happen after "stop" is sent.
this.send_title();
}
Expand Down Expand Up @@ -830,15 +830,15 @@ function NewRenderer() {
};

renderer.soft_engine_reset = function() {
this.set_behaviour("halt");
this.engine.send("ucinewgame");
this.set_behaviour("halt"); // Will cause "stop" to be sent.
this.engine.send("ucinewgame"); // Must happen after "stop" is sent.
};

renderer.forget_analysis = function() {
CleanTree(this.tree.root);
this.info_handler.must_draw_infobox();
this.set_behaviour("halt");
this.engine.send("ucinewgame");
this.set_behaviour("halt"); // Will cause "stop" to be sent.
this.engine.send("ucinewgame"); // Must happen after "stop" is sent.
};

renderer.set_uci_option = function(name, val, save_to_cfg) {
Expand Down

0 comments on commit 007c8ca

Please sign in to comment.