Skip to content

Commit

Permalink
No functional change, make it easier to adjust the return type
Browse files Browse the repository at this point in the history
  • Loading branch information
yuzisee committed Sep 28, 2023
1 parent 4c06173 commit d0e823b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 2 additions & 4 deletions files/src/renderer/50_table.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ const table_prototype = {

// Naphthalin's scheme: based on centipawns.

if (this.graph_y_version === this.version) {
return this.graph_y;
} else {
if (this.graph_y_version !== this.version) {
let info = SortedMoveInfoFromTable(this)[0];
if (info && !info.__ghost && info.__touched && (this.nodes > 1 || this.limit === 1)) {
let cp = info.cp;
Expand All @@ -42,8 +40,8 @@ const table_prototype = {
this.graph_y = null;
}
this.graph_y_version = this.version;
return this.graph_y;
}
return this.graph_y;
},

set_terminal_info: function(reason, ev) { // ev is ignored if reason is "" (i.e. not a terminal position)
Expand Down
1 change: 1 addition & 0 deletions files/src/renderer/55_winrate_graph.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ function NewGrapher() {
graphctx.setLineDash([]);

for (let run of runs.normal_runs) {
// Evaluation line
graphctx.beginPath();
graphctx.moveTo(run[0].x1, run[0].y1);
for (let edge of run) {
Expand Down

0 comments on commit d0e823b

Please sign in to comment.