Updating LibMapData to r78
James Whitehead II [01-09-11 - 17:42]
Updating LibMapData to r78
diff --git a/libs/LibMapData-1.0/library.lua b/libs/LibMapData-1.0/library.lua
index 7c2819b..e698d79 100644
--- a/libs/LibMapData-1.0/library.lua
+++ b/libs/LibMapData-1.0/library.lua
@@ -2,7 +2,7 @@
Library contains a dataset for Map file names and floors giving the raw map data
it also has a few functions to help determine distance and directions.
--]]
-local MAJOR, MINOR = "LibMapData-1.0", tonumber("76") or 999
+local MAJOR, MINOR = "LibMapData-1.0", tonumber("78") or 999
assert(LibStub, MAJOR.." requires LibStub")
local lib = LibStub:NewLibrary(MAJOR, MINOR)
@@ -851,6 +851,12 @@ do
-- Build the localized name list.
local continentList = {GetMapContinents()}
for cID = 1, #continentList do
+ SetMapZoom(cID, 0)
+ local mapfile = GetMapInfo()
+ local cname = continentList[cID]
+ mapToLocal[mapfile] = cname
+ localToMap[cname] = mapfile
+ mapData[idToMap[mapfile]].continent = cID
for zID, zname in ipairs({GetMapZones(cID)}) do
SetMapZoom(cID, zID)
local mapfile = GetMapInfo()