fix:debug模式调整

This commit is contained in:
lizhuoyuan 2025-02-05 17:28:16 +08:00
parent b6e471eb09
commit a829efc1fe

View File

@ -729,12 +729,12 @@ control.prototype._moveHero_moving = function () {
core.status.automaticRoute.moveDirectly = false;
var move = function () {
if (!core.status.heroStop) {
if (core.hasFlag('debug') && core.status.ctrlDown) {
if ((core.hasFlag('debug') && core.status.ctrlDown) || core.hasFlag('debug_wallHacking')) {
if (core.status.heroMoving != 0) return;
// 检测是否穿出去
var nx = core.nextX(), ny = core.nextY();
if (nx < 0 || nx >= core.bigmap.width || ny < 0 || ny >= core.bigmap.height) return;
core.eventMoveHero([core.getHeroLoc('direction')], core.values.moveSpeed, move);
core.eventMoveHero([core.getHeroLoc('direction')], core.values.moveSpeed); // 取消递归,方便调试时单击走一步的情形
}
else {
core.moveAction();