fix: 大怪物显示错误

This commit is contained in:
unanmed 2025-09-30 13:53:15 +08:00
parent 237f3b37db
commit 2a59e135ba

View File

@ -1026,6 +1026,8 @@ export class Layer extends Container<ELayerEvent> {
this.autotiles = {}; this.autotiles = {};
this.block.size(width, height); this.block.size(width, height);
this.block.clearAllCache(); this.block.clearAllCache();
this.bigImages.clear();
this.moving.clear();
for (const ex of this.extend.values()) { for (const ex of this.extend.values()) {
ex.onMapResize?.(this, width, height); ex.onMapResize?.(this, width, height);
@ -1160,7 +1162,7 @@ export class Layer extends Container<ELayerEvent> {
this.floorImage.forEach(v => { this.floorImage.forEach(v => {
if (v.disable) return; if (v.disable) return;
const { x, y } = v; const { x, y } = v;
ctx.fillRect(0, 0, 480, 480); ctx.fillRect(0, 0, MAP_WIDTH, MAP_HEIGHT);
ctx.drawImage(images[v.name], x, y); ctx.drawImage(images[v.name], x, y);
}); });
} }