cache
This commit is contained in:
parent
c4974e973b
commit
28628ac9e5
@ -522,7 +522,9 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a =
|
||||
var guards = [];
|
||||
// 检查光环缓存
|
||||
var index = x != null && y != null ? (x + "," + y) : "floor";
|
||||
var cache = ((core.status.checkBlock||{}).cache||{})[index];
|
||||
if (!core.status.checkBlock) core.status.checkBlock = {};
|
||||
if (!core.status.checkBlock.cache) core.status.checkBlock.cache = {};
|
||||
var cache = core.status.checkBlock.cache[index];
|
||||
if (!cache) {
|
||||
// 没有该点的缓存,则遍历每个图块
|
||||
core.status.maps[floorId].blocks.forEach(function (block) {
|
||||
@ -1220,7 +1222,7 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a =
|
||||
type: type,
|
||||
snipe: snipe,
|
||||
ambush: ambush,
|
||||
cache: (core.status.checkBlock||{}).cache||{}
|
||||
cache: {} // clear cache
|
||||
};
|
||||
},
|
||||
"moveOneStep": function (x, y) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user