Update LibMapData to r80, fixing a sign error
James Whitehead II [01-10-11 - 22:57]
Update LibMapData to r80, fixing a sign error
diff --git a/libs/LibMapData-1.0/library.lua b/libs/LibMapData-1.0/library.lua
index e698d79..2f8fc2f 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("78") or 999
+local MAJOR, MINOR = "LibMapData-1.0", tonumber("80") or 999
assert(LibStub, MAJOR.." requires LibStub")
local lib = LibStub:NewLibrary(MAJOR, MINOR)
@@ -1112,7 +1112,7 @@ function lib:ConvertToContinent(map,floor, x,y)
x = x + transforms_x[mapData[map].continent]
y = y + transforms_y[mapData[map].continent]
end
- return x,y
+ return x,-y
end
--- API to calc the distance between 2 locations across map files