Fix 266 bug
This commit is contained in:
parent
b111d8aa80
commit
202b6c8ca6
@ -845,9 +845,11 @@ events.prototype.setEvents = function (list, x, y, callback) {
|
||||
if (list) {
|
||||
data.list = [{todo: core.clone(list), total: core.clone(list), condition: "false"}];
|
||||
// 结束所有正在执行的自动事件
|
||||
core.status.autoEvents.forEach(function (autoEvent) {
|
||||
core.autoEventExecuting(autoEvent.symbol, false);
|
||||
});
|
||||
if (list.length == 0) {
|
||||
core.status.autoEvents.forEach(function (autoEvent) {
|
||||
core.autoEventExecuting(autoEvent.symbol, false);
|
||||
});
|
||||
}
|
||||
}
|
||||
if (x != null) data.x = x;
|
||||
if (y != null) data.y = y;
|
||||
|
||||
@ -1293,8 +1293,6 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a =
|
||||
}
|
||||
// 如需强行终止行走可以在这里条件判定:
|
||||
// core.stopAutomaticRoute();
|
||||
|
||||
core.updateStatusBar();
|
||||
},
|
||||
"moveDirectly": function (x, y, ignoreSteps) {
|
||||
// 瞬间移动;x,y为要瞬间移动的点;ignoreSteps为减少的步数,可能之前已经被计算过
|
||||
|
||||
Loading…
Reference in New Issue
Block a user