From e5a7c9e10c3f2ecdd91906a38dbdcb7c4ae822e6 Mon Sep 17 00:00:00 2001 From: oc Date: Wed, 12 Dec 2018 16:37:16 +0800 Subject: [PATCH] setInterval time & load statusBar --- libs/control.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/control.js b/libs/control.js index dc23bb33..beaeb8cc 100644 --- a/libs/control.js +++ b/libs/control.js @@ -1566,7 +1566,7 @@ control.prototype.setFg = function(color, time, callback) { core.clearMap('curtain'); core.fillRect('curtain', 0, 0, 416, 416, core.arrayToRGBA([nowR,nowG,nowB,nowA])); - if (step>=25) { + if (step>=steps) { delete core.animateFrame.asyncId[changeAnimate]; clearInterval(changeAnimate); core.status.curtainColor = color;