From 3d636be4ea1794a9dab19b10c155a68ac7e13203 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=91cze=20Bence?= Date: Thu, 21 May 2020 15:19:05 +0200 Subject: [PATCH] MAPG-40 use Math.floor instead of accidentally used Math.ceil --- 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 f1a087e..2ec3c2e 100644 --- a/public/static/js/mapguesser.js +++ b/public/static/js/mapguesser.js @@ -56,7 +56,7 @@ }, calculateScoreBarProperties: function (score) { - var percent = Math.ceil((score / Core.MAX_SCORE) * 100); + var percent = Math.floor((score / Core.MAX_SCORE) * 100); var color; if (percent >= 90) {