From a24fc1db3807faa1c0da6e2a382d469c9a2523a5 Mon Sep 17 00:00:00 2001 From: oc Date: Sun, 4 Feb 2018 12:26:18 +0800 Subject: [PATCH] Fix Hero Bug --- libs/core.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libs/core.js b/libs/core.js index 44e93d91..4aabecdb 100644 --- a/libs/core.js +++ b/libs/core.js @@ -1578,8 +1578,9 @@ core.prototype.setHeroMoveInterval = function (direction, x, y, callback) { core.setHeroLoc('x', x+scan[direction].x); core.setHeroLoc('y', y+scan[direction].y); core.moveOneStep(); - if (core.status.heroStop) - core.drawHero(direction, core.getHeroLoc('x'), core.getHeroLoc('y'), 'stop'); + core.drawHero(direction, core.getHeroLoc('x'), core.getHeroLoc('y'), 'stop'); + //if (core.status.heroStop) + // core.drawHero(direction, core.getHeroLoc('x'), core.getHeroLoc('y'), 'stop'); clearInterval(core.interval.heroMoveInterval); core.status.heroMoving = false; if (core.isset(callback)) callback();