MAPG-32 use Math.ceil instead of Math.round for scorebar
This commit is contained in:
parent
c36b91d5a8
commit
82f69664c1
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user