Update bigmap threshold
This commit is contained in:
parent
bd6ff37811
commit
f040f82b51
@ -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);
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user