From f943efe68d7ed4386facf7cd58600f0bef5138f2 Mon Sep 17 00:00:00 2001 From: James Whitehead II Date: Mon, 10 Jan 2011 22:57:02 +0000 Subject: [PATCH] Update LibMapData to r80, fixing a sign error --- libs/LibMapData-1.0/library.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 1.7.9.5