From 5995eb07ecdb5d393aaa1f57699d624b4fb1745d Mon Sep 17 00:00:00 2001 From: ckcz123 Date: Tue, 8 Sep 2020 19:44:56 +0800 Subject: [PATCH] Fix resetMap --- libs/maps.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/maps.js b/libs/maps.js index a7b5a49b..604d8689 100644 --- a/libs/maps.js +++ b/libs/maps.js @@ -2103,6 +2103,8 @@ maps.prototype.resetMap = function (floorId) { Object.keys(core.status.hero.flags).forEach(function (one) { if (one.startsWith(floorId + '@')) delete core.status.hero.flags[one]; }) + // 重置本层的图块删除信息 + delete (flags.__disabled__ || {})[t]; if (t == core.status.floorId) needRefresh = true; }); if (needRefresh) this.drawMap();