From: Steinar H. Gunderson Date: Sat, 13 Feb 2021 17:50:25 +0000 (+0100) Subject: Fix some more TB short-form issues. X-Git-Url: https://git.sesse.net/?p=remoteglot;a=commitdiff_plain;h=f8c7d9bb05d38e91899b0bd81282239f076fbb37 Fix some more TB short-form issues. --- diff --git a/www/js/remoteglot.js b/www/js/remoteglot.js index e7c97e5..37f5c7b 100644 --- a/www/js/remoteglot.js +++ b/www/js/remoteglot.js @@ -7,7 +7,7 @@ * @type {Number} * @const * @private */ -var SCRIPT_VERSION = 2021021200; +var SCRIPT_VERSION = 2021021300; /** * The current backend URL. @@ -2130,7 +2130,7 @@ var format_short_score = function(score) { if (score[0] === 'T') { return ret + Math.ceil(score[1] / 2); } else { - return ret + "-" + Math.ceil(-score[1] / 2); + return ret + "-" + Math.ceil(score[1] / 2); } } else if (score[0] === 'M' || score[0] === 'm') { var sign = (score[0] === 'm') ? '-' : '';