Skip to content

Commit

Permalink
Fix issue #281.
Browse files Browse the repository at this point in the history
  • Loading branch information
IrcDirk committed Oct 3, 2024
1 parent 70f5c1c commit 5640b39
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions NxMap.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9181,7 +9181,7 @@ end
--------
-- Init map tables

function Nx.Map:InitTables()
function Nx.Map:InitTables(skipZoneConnections)

local Nx = Nx

Expand Down Expand Up @@ -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]
Expand Down Expand Up @@ -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

--------
Expand Down
2 changes: 1 addition & 1 deletion NxMapData.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5640b39

Please sign in to comment.