getBgFgMapArray

This commit is contained in:
oc 2019-03-23 01:29:14 +08:00
parent 3b5f4c7c41
commit e0eea19d84

View File

@ -352,7 +352,7 @@ maps.prototype.getBgFgMapArray = function (name, floorId, noCache) {
if (main.mode == 'editor') arr[y][x] = arr[y][x].idnum || arr[y][x] || 0;
}
}
if (!noCache)
if (core.status[name + "maps"])
core.status[name + "maps"][floorId] = core.clone(arr);
return arr;
}