From 05a87f07fd78d01d0947db3e1dc251cfeb76d269 Mon Sep 17 00:00:00 2001 From: oc Date: Wed, 9 Jan 2019 00:01:01 +0800 Subject: [PATCH] globalAnimate Speed --- libs/control.js | 4 +--- libs/core.js | 1 - libs/maps.js | 1 - 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/libs/control.js b/libs/control.js index 090478bb..10955157 100644 --- a/libs/control.js +++ b/libs/control.js @@ -44,8 +44,6 @@ control.prototype.setRequestAnimationFrame = function () { } }()); - core.animateFrame.speed = core.values.animateSpeed; - var draw = function(timestamp) { // move time @@ -57,7 +55,7 @@ control.prototype.setRequestAnimationFrame = function () { } // Global Animate - if (timestamp - core.animateFrame.globalTime > core.animateFrame.speed && core.isPlaying()) { + if (timestamp - core.animateFrame.globalTime > core.values.animateSpeed && core.isPlaying()) { core.status.globalAnimateStatus++; diff --git a/libs/core.js b/libs/core.js index f3738968..bd92cf4a 100644 --- a/libs/core.js +++ b/libs/core.js @@ -36,7 +36,6 @@ function core() { 'moveTime': 0, 'lastLegTime': 0, 'leftLeg': true, - 'speed': null, 'weather': { 'time': 0, 'type': null, diff --git a/libs/maps.js b/libs/maps.js index fa4ab346..851ad07e 100644 --- a/libs/maps.js +++ b/libs/maps.js @@ -1364,7 +1364,6 @@ maps.prototype.removeGlobalAnimate = function (x, y, all, name) { maps.prototype.setGlobalAnimate = function (speed) { if (main.mode=='editor' && main.editor.disableGlobalAnimate) return; core.status.globalAnimateStatus = 0; - core.animateFrame.speed = speed; core.animateFrame.globalAnimate = true; }