MAPG-40 use Math.floor instead of accidentally used Math.ceil
This commit is contained in:
		
							parent
							
								
									d7fbb717bc
								
							
						
					
					
						commit
						3d636be4ea
					
				@ -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) {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user