From 0951b9c78ad66203537a73e165559b02a9fd6327 Mon Sep 17 00:00:00 2001 From: ShakeFlower Date: Mon, 9 Jun 2025 10:45:59 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E6=AD=A3=E6=9C=AA=E8=A7=A6?= =?UTF-8?q?=E5=8F=91=E5=90=8C=E6=AD=A5=E5=AD=98=E6=A1=A3=E8=AD=A6=E6=8A=A5?= =?UTF-8?q?=E4=BB=8D=E7=84=B6=E4=BC=9A=E7=BB=98=E5=88=B6=E5=AF=B9=E5=BA=94?= =?UTF-8?q?=E6=A1=86=E4=BD=93=E7=9A=84=E9=97=AE=E9=A2=98=EF=BC=88=E6=9B=B4?= =?UTF-8?q?=E5=A4=9A=E5=AD=98=E6=A1=A3=E7=9B=B8=E5=85=B3=E6=9C=BA=E5=88=B6?= =?UTF-8?q?=E5=BE=85=E6=94=B9=E5=86=99=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libs/control.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/control.js b/libs/control.js index 4fc06dff..ec1b61f6 100644 --- a/libs/control.js +++ b/libs/control.js @@ -2294,10 +2294,10 @@ control.prototype.syncSave = function (type) { const index = core.saves.saveIndex; if (!index) return core.drawText("没有要同步的存档"); const callback = function (save) { - const ctx = core.createCanvas('syncSave', core.__PIXELS__ / 2 - 52, 18, 104, 104, 141); - core.strokeRect(ctx, 0, 0, 104, 104, 'yellow', 2); const autosave = core.saves.autosave; if (autosave.data instanceof Array && core.saves.actionCount > 0) { + const ctx = core.createCanvas('syncSave', core.__PIXELS__ / 2 - 52, 18, 104, 104, 141); + core.strokeRect(ctx, 0, 0, 104, 104, 'yellow', 2); const map = core.maps.loadMap(save.maps, save.floorId); core.drawThumbnail(save.floorId, map.blocks, { heroLoc: save.hero.loc, heroIcon: save.hero.image, flags: save.hero.flags,