MAPG-32 use Math.ceil instead of Math.round for scorebar
This commit is contained in:
1 parent
c36b91d5a8
commit
82f69664c1
1 file changed
+1
-1
@@ -42,7 +42,7 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
calculateScoreBarProperties: function (score) {
|
calculateScoreBarProperties: function (score) {
|
||||||
var percent = Math.round((score / Core.MAX_SCORE) * 100);
|
var percent = Math.ceil((score / Core.MAX_SCORE) * 100);
|
||||||
|
|
||||||
var color;
|
var color;
|
||||||
if (percent >= 90) {
|
if (percent >= 90) {
|
||||||
|
|||||||
Reference in new issue
Block a user