Merged in bugfix/MAPG-40-fix-invalid-usage-of-math.ceil (pull request #24)
MAPG-40 use Math.floor instead of accidentally used Math.ceil
This commit is contained in:
commit
8cf727a54a
@ -56,7 +56,7 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
calculateScoreBarProperties: function (score) {
|
calculateScoreBarProperties: function (score) {
|
||||||
var percent = Math.ceil((score / Core.MAX_SCORE) * 100);
|
var percent = Math.floor((score / Core.MAX_SCORE) * 100);
|
||||||
|
|
||||||
var color;
|
var color;
|
||||||
if (percent >= 90) {
|
if (percent >= 90) {
|
||||||
|
Loading…
Reference in New Issue
Block a user