From 8413bb657f580d111b6bb333e94a2443a8806a2d Mon Sep 17 00:00:00 2001 From: ckcz123 Date: Tue, 31 Dec 2019 16:18:12 +0800 Subject: [PATCH] Fix V2.6.6 --- _server/editor.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/_server/editor.js b/_server/editor.js index 0d649107..525f8abe 100644 --- a/_server/editor.js +++ b/_server/editor.js @@ -410,6 +410,8 @@ editor.prototype.updateLastUsedMap = function () { if (!info || !info.images) continue; if (info.isTile) { ctx.drawImage(core.material.images.tilesets[info.images], 32 * info.x, 32 * info.y, 32, 32, x*32, y*32, 32, 32); + } else if (info.images == 'autotile') { + ctx.drawImage(core.material.images.autotile[info.id], 0, 0, 32, 32, x * 32, y * 32, 32, 32); } else { var per_height = info.images.endsWith('48') ? 48 : 32; ctx.drawImage(core.material.images[info.images], 0, info.y * per_height, 32, per_height, x * 32, y * 32, 32, 32);