From ed756fd94f3bb3e155402268c562016c842c4217 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Tue, 22 Mar 2016 00:13:21 +0100 Subject: [PATCH] Add a SCORE_NONE, and fix a typo. --- www/js/hash-lookup.js | 2 +- www/js/hashprobe.proto | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/www/js/hash-lookup.js b/www/js/hash-lookup.js index 274490f..8fe1297 100644 --- a/www/js/hash-lookup.js +++ b/www/js/hash-lookup.js @@ -90,7 +90,7 @@ var translate_line = function(board, fen, line) { var score = null; if (line['value']['score_type'] === 'SCORE_CP') { score = ['cp', line['value']['score_cp']]; - } else if (line['value']['score_mate'] === 'SCORE_MATE') { + } else if (line['value']['score_type'] === 'SCORE_MATE') { score = ['m', line['value']['score_mate']]; } if (score) { diff --git a/www/js/hashprobe.proto b/www/js/hashprobe.proto index dfd16fd..bb34806 100644 --- a/www/js/hashprobe.proto +++ b/www/js/hashprobe.proto @@ -33,8 +33,9 @@ message HashProbeMove { } message HashProbeScore { enum ScoreType { - SCORE_CP = 0; - SCORE_MATE = 1; + SCORE_NONE = 0; + SCORE_CP = 1; + SCORE_MATE = 2; } ScoreType score_type = 1; int32 score_cp = 2; -- 2.39.2