Update bigmap threshold

This commit is contained in:
ckcz123 2020-07-15 23:54:08 +08:00
parent bd6ff37811
commit f040f82b51
3 changed files with 3 additions and 3 deletions

View File

@ -1126,7 +1126,7 @@ control.prototype.updateDamage = function (floorId, ctx) {
if (!onMap) {
var width = core.floors[floorId].width, height = core.floors[floorId].height;
// 地图过大的缩略图不绘制显伤
if (width * height > (core.__SIZE__ + 2 * core.bigmap.extend) * (core.__SIZE__ + 2 * core.bigmap.extend)) return;
if (width * height > core.bigmap.threshold) return;
}
this._updateDamage_damage(floorId, onMap);
this._updateDamage_extraDamage(floorId, onMap);

View File

@ -101,7 +101,7 @@ function core() {
width: this.__SIZE__, // map width and height
height: this.__SIZE__,
v2: false,
threshold: 512,
threshold: 1024,
extend: 10,
scale: 1.0,
tempCanvas: null, // A temp canvas for drawing

View File

@ -1468,7 +1468,7 @@ maps.prototype._drawThumbnail_drawTempCanvas = function (floorId, blocks, option
options.ctx = tempCanvas;
// 地图过大的缩略图不绘制显伤
if (width * height > (core.__SIZE__ + 2 * core.bigmap.extend) * (core.__SIZE__ + 2 * core.bigmap.extend))
if (width * height > core.bigmap.threshold)
options.damage = false;
// --- 暂存 flags