Fix Hero Bug
This commit is contained in:
parent
02337f0e64
commit
a24fc1db38
@ -1578,8 +1578,9 @@ core.prototype.setHeroMoveInterval = function (direction, x, y, callback) {
|
|||||||
core.setHeroLoc('x', x+scan[direction].x);
|
core.setHeroLoc('x', x+scan[direction].x);
|
||||||
core.setHeroLoc('y', y+scan[direction].y);
|
core.setHeroLoc('y', y+scan[direction].y);
|
||||||
core.moveOneStep();
|
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);
|
clearInterval(core.interval.heroMoveInterval);
|
||||||
core.status.heroMoving = false;
|
core.status.heroMoving = false;
|
||||||
if (core.isset(callback)) callback();
|
if (core.isset(callback)) callback();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user