mirror of
https://github.com/unanmed/HumanBreak.git
synced 2025-02-28 17:37:07 +08:00
fix: 录像少记录
This commit is contained in:
parent
67a9eaa4d5
commit
57068987b4
@ -720,6 +720,7 @@ control.prototype.tryMoveDirectly = function (destX, destY) {
|
|||||||
continue;
|
continue;
|
||||||
if (dir && !core.inArray(canMoveArray[dx][dy], dir)) continue;
|
if (dir && !core.inArray(canMoveArray[dx][dy], dir)) continue;
|
||||||
if (canMoveDirectlyArray[i] < 0) continue;
|
if (canMoveDirectlyArray[i] < 0) continue;
|
||||||
|
core.clearRouteFolding();
|
||||||
if (core.control.moveDirectly(dx, dy, canMoveDirectlyArray[i])) {
|
if (core.control.moveDirectly(dx, dy, canMoveDirectlyArray[i])) {
|
||||||
if (dir) {
|
if (dir) {
|
||||||
core.moveHero(dir, function () {});
|
core.moveHero(dir, function () {});
|
||||||
|
@ -646,8 +646,6 @@ export class HeroMover extends ObjectMoverBase {
|
|||||||
if (x === 0) core.setHeroLoc('x', map.width - 1);
|
if (x === 0) core.setHeroLoc('x', map.width - 1);
|
||||||
else core.setHeroLoc('x', 0);
|
else core.setHeroLoc('x', 0);
|
||||||
} else {
|
} else {
|
||||||
// console.trace();
|
|
||||||
|
|
||||||
core.setHeroLoc('x', nx, true);
|
core.setHeroLoc('x', nx, true);
|
||||||
core.setHeroLoc('y', ny, true);
|
core.setHeroLoc('y', ny, true);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user