From 95ab7730aef8da563273a571030b4398f0250b51 Mon Sep 17 00:00:00 2001 From: Matthias Bilger Date: Mon, 23 Mar 2020 22:52:51 +0100 Subject: [PATCH] fix fix fix --- ddimport.js | 4 ++-- module.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ddimport.js b/ddimport.js index 9049424..2306880 100644 --- a/ddimport.js +++ b/ddimport.js @@ -108,7 +108,7 @@ class DDImporter { let currentwalls = []; for(let i = 0; i < points.length-3; i+=2) { - allwalls.push([[points[i], points[i+1]], [points[i+2], points[i+3]]]) + currentwalls.push([[points[i], points[i+1]], [points[i+2], points[i+3]]]) } for (let portal of ddWalls.portals){ let portalCenterPoint = portal.position.substring(8, portal.position.length-2).split(", ").map(a => Number(a)) @@ -118,7 +118,7 @@ class DDImporter { alldoors.push([portalPoint1, portalPoint2]) let allwalls_new = [] for (let lineindex = 0; lineindex < currentwalls.length; lineindex+=1){ - let line = acurrentwallsllwalls[lineindex] + let line = currentwalls[lineindex] if (this.pointIsOnLine(portalCenterPoint,line)){ let endpoint1 = this.getNearerPoint(line[0], [portalPoint1, portalPoint2]) let endpoint2 = this.getNearerPoint(line[1], [portalPoint1, portalPoint2]) diff --git a/module.json b/module.json index ecf3b4d..dd63d81 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.22", + "version": "0.4.24", "authors": [ { "name": "Moo Man"