From 740552b60e9cf10ba5b6f88360b260a8574e93ff Mon Sep 17 00:00:00 2001 From: Matthias Bilger Date: Mon, 23 Mar 2020 22:23:53 +0100 Subject: [PATCH] fixed fix --- ddimport.js | 4 ++-- module.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ddimport.js b/ddimport.js index 05e72d0..8afc8c4 100644 --- a/ddimport.js +++ b/ddimport.js @@ -117,7 +117,7 @@ class DDImporter { let portalPoint2 = [portalCenterPoint[0] - portal.radius*portalDirection[0], portalCenterPoint[1] - portal.radius*portalDirection[1]] ; alldoors.push([portalPoint1, portalPoint2]) let allwalls_new = [] - for (let lineindex = 0; lineindex < acurrentwallsllwalls.length; lineindex+=1){ + for (let lineindex = 0; lineindex < currentwalls.length; lineindex+=1){ let line = acurrentwallsllwalls[lineindex] if (this.pointIsOnLine(portalCenterPoint,line)){ let endpoint1 = this.getNearerPoint(line[0], [portalPoint1, portalPoint2]) @@ -133,7 +133,7 @@ class DDImporter { allwalls_new.push(line) } } - acurrentwallsllwalls = allwalls_new + currentwalls = allwalls_new } allwalls = allwalls.concat(currentwalls) } diff --git a/module.json b/module.json index 7284bcf..1fb9fe9 100644 --- a/module.json +++ b/module.json @@ -2,7 +2,7 @@ "name": "dd-import", "title": "DungeonDraft Importer", "description": "Imports scene elements from Dungeon Draft map files", - "version": "0.4.20", + "version": "0.4.21", "authors": [ { "name": "Moo Man"