From 82f69664c1b3f331912942d100a7dd794d2829ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=91cze=20Bence?= Date: Wed, 20 May 2020 14:59:48 +0200 Subject: [PATCH] MAPG-32 use Math.ceil instead of Math.round for scorebar --- public/static/js/mapguesser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/static/js/mapguesser.js b/public/static/js/mapguesser.js index 759f25c..10043ae 100644 --- a/public/static/js/mapguesser.js +++ b/public/static/js/mapguesser.js @@ -42,7 +42,7 @@ }, calculateScoreBarProperties: function (score) { - var percent = Math.round((score / Core.MAX_SCORE) * 100); + var percent = Math.ceil((score / Core.MAX_SCORE) * 100); var color; if (percent >= 90) {