From 51aa80f9bfa8df9390aec719f7e68bf703003ca3 Mon Sep 17 00:00:00 2001 From: InstantMeteor Date: Sun, 1 Dec 2019 09:51:41 +0800 Subject: [PATCH] Update actions.js --- libs/actions.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/actions.js b/libs/actions.js index bf8a6140..544dc945 100644 --- a/libs/actions.js +++ b/libs/actions.js @@ -1933,8 +1933,8 @@ actions.prototype._clickSwitchs = function (x, y) { else if (x == this.HSIZE+2) { return this._clickSwitchs_userVolume(0.1); } return; case 3: - if (x == this.HSIZE-2) { return this._clickSwitchs_moveSpeed(10); } - else if (x == this.HSIZE+2) { return this._clickSwitchs_moveSpeed(-10); } + if (x == this.HSIZE-2) { return this._clickSwitchs_moveSpeed(-10); } + else if (x == this.HSIZE+2) { return this._clickSwitchs_moveSpeed(10); } return; case 4: return this._clickSwitchs_displayEnemyDamage(); @@ -1977,7 +1977,7 @@ actions.prototype._clickSwitchs_userVolume = function (delta) { } actions.prototype._clickSwitchs_moveSpeed = function (delta) { - var value = core.clamp(parseInt(core.values.moveSpeed + delta), 60, 200); + var value = core.clamp(parseInt(core.values.moveSpeed + delta), 50, 200); core.values.moveSpeed = parseInt(value); core.setLocalStorage("moveSpeed", core.values.moveSpeed); core.ui.drawSwitchs();