Remove Autotile Animate

This commit is contained in:
oc 2018-10-31 23:26:00 +08:00
parent 82dcff123a
commit b9af2c8e39

View File

@ -1200,12 +1200,14 @@ maps.prototype.removeGlobalAnimate = function (x, y, all) {
return; return;
} }
for (var t = 0; t < core.status.globalAnimateObjs.length; t++) { core.status.globalAnimateObjs = core.status.globalAnimateObjs.filter(function (block) {return block.x!=x || block.y!=y;});
if (core.status.globalAnimateObjs[t].x == x && core.status.globalAnimateObjs[t].y == y) {
core.status.globalAnimateObjs.splice(t, 1); // 检查Autotile
return; if (core.isset(core.status.autotileAnimateObjs.blocks)) {
} core.status.autotileAnimateObjs.blocks = core.status.autotileAnimateObjs.blocks.filter(function (block) {return block.x!=x || block.y!=y;});
core.status.autotileAnimateObjs.map[y][x] = 0;
} }
} }
////// 设置全局动画的显示效果 ////// ////// 设置全局动画的显示效果 //////