Fixed timer precision

This commit is contained in:
Nathan Dinsmore 2013-11-14 23:12:07 -05:00
parent 6c31987bbf
commit e74d03cb97

View file

@ -99,7 +99,7 @@ Reporter.prototype.update = function() {
newValue = target.currentCostumeIndex + 1;
break;
case 'timer':
newValue = interp.primitiveTable.timer();
newValue = '' + Math.round(interp.primitiveTable.timer() * 10) / 10;
break;
}
if (typeof newValue === 'number' && Math.abs(newValue) > 0.001) {