diff --git a/libs/events.js b/libs/events.js index 0b6edaad..bac028d1 100644 --- a/libs/events.js +++ b/libs/events.js @@ -1173,12 +1173,14 @@ events.prototype.pushBox = function (data) { } core.updateStatusBar(); - core.lockControl(); - core.eventMoveHero([direction], null, function () { - core.unLockControl(); + + core.status.replay.animate = true; + core.moveHero(direction, function() { + core.status.replay.animate = false; + core.status.route.pop(); core.events.afterPushBox(); core.replay(); - }) + }); } diff --git a/project/floors/sample0.js b/project/floors/sample0.js index 804dee94..656f254a 100644 --- a/project/floors/sample0.js +++ b/project/floors/sample0.js @@ -24,8 +24,8 @@ main.floors.sample0 = [224, 254, 212, 262, 204, 5, 0, 1, 31, 32, 34, 33, 36], [201, 261, 217, 264, 207, 5, 0, 1, 27, 28, 29, 30, 35], [5, 5, 125, 5, 5, 5, 0, 1, 21, 22, 23, 24, 25], - [0, 0, 237, 0, 0, 0, 45, 1, 1, 1, 121, 1, 1], - [4, 4, 133, 4, 4, 4, 0, 0, 0, 0, 0, 85, 124], + [0, 0, 237, 0, 0, 237, 169, 1, 1, 1, 121, 1, 1], + [4, 4, 133, 4, 4, 4, 0, 45, 0, 0, 0, 85, 124], [87, 11, 12, 13, 14, 4, 4, 2, 2, 2, 122, 2, 2], [88, 89, 90, 91, 92, 93, 94, 2, 81, 82, 83, 84, 86], ],