From 5640b39520d39cd9175d0351081cd603bdafd996 Mon Sep 17 00:00:00 2001 From: IrcDirk Date: Thu, 3 Oct 2024 11:08:42 +0200 Subject: [PATCH] Fix issue #281. --- NxMap.lua | 10 ++++++---- NxMapData.lua | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/NxMap.lua b/NxMap.lua index 1341555..55b7430 100644 --- a/NxMap.lua +++ b/NxMap.lua @@ -9181,7 +9181,7 @@ end -------- -- Init map tables -function Nx.Map:InitTables() +function Nx.Map:InitTables(skipZoneConnections) local Nx = Nx @@ -9433,7 +9433,8 @@ function Nx.Map:InitTables() Nx.ZoneConnections = Nx["ZoneConnections"] or Nx.ZoneConnections -- Copy unmunged data to munged data - -- Init zone connections + if not skipZoneConnections then + -- Init zone connections for n = 0, 2999 do local mapId = n local winfo = worldInfo[mapId] @@ -9490,12 +9491,13 @@ function Nx.Map:InitTables() end end --- else --- Nx.prt ("%s to %s", mapId1, mapId2) + -- else + -- Nx.prt ("%s to %s", mapId1, mapId2) end end end end + end end -------- diff --git a/NxMapData.lua b/NxMapData.lua index 0c3c8a1..f99e257 100644 --- a/NxMapData.lua +++ b/NxMapData.lua @@ -17186,7 +17186,7 @@ function Nx.Map:GetZoneInfo (mapid, force) local parentMapID = mapinfo.parentMapID or 0 Nx.Zones[mapid] = L[mapinfo.name] .. "|110|120|3|5|"..(parentMapID > 0 and parentMapID or 100).."|0|0|0" - Nx.Map:InitTables() + Nx.Map:InitTables(true) end if mapinfo.parentMapID then winfo[mapid].parentMapID = mapinfo.parentMapID