fix:debug模式调整
This commit is contained in:
parent
0f1673a944
commit
3be5bd49e3
@ -729,7 +729,14 @@ control.prototype._moveHero_moving = function () {
|
|||||||
core.status.automaticRoute.moveDirectly = false;
|
core.status.automaticRoute.moveDirectly = false;
|
||||||
var move = function () {
|
var move = function () {
|
||||||
if (!core.status.heroStop) {
|
if (!core.status.heroStop) {
|
||||||
if ((core.hasFlag('debug') && core.status.ctrlDown) || core.hasFlag('debug_wallHacking')) {
|
if (core.hasFlag('debug') && core.status.ctrlDown) {
|
||||||
|
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);
|
||||||
|
}
|
||||||
|
else if (core.hasFlag('debug_wallHacking')) {
|
||||||
if (core.status.heroMoving != 0) return;
|
if (core.status.heroMoving != 0) return;
|
||||||
// 检测是否穿出去
|
// 检测是否穿出去
|
||||||
var nx = core.nextX(), ny = core.nextY();
|
var nx = core.nextX(), ny = core.nextY();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user