Quantcast

patch

Steven Jackson [08-26-14 - 03:06]
patch
Filename
Interface/AddOns/SVUI/libs/oUF_Plugins/oUF_GPS/oUF_GPS.lua
Interface/AddOns/SVUI/system/cartography.lua
diff --git a/Interface/AddOns/SVUI/libs/oUF_Plugins/oUF_GPS/oUF_GPS.lua b/Interface/AddOns/SVUI/libs/oUF_Plugins/oUF_GPS/oUF_GPS.lua
index 892aec5..2e3103e 100644
--- a/Interface/AddOns/SVUI/libs/oUF_Plugins/oUF_GPS/oUF_GPS.lua
+++ b/Interface/AddOns/SVUI/libs/oUF_Plugins/oUF_GPS/oUF_GPS.lua
@@ -27,13 +27,14 @@ local Update = function(self, elapsed)
 		if((UnitInParty(unit) or UnitInRaid(unit)) and not UnitIsUnit(unit, "player")) then
 			if(not SuperVillain) then SuperVillain = SVUI[1] end

-			local distance, angle = SuperVillain:Triangulate("player", unit, true)
+			local distance, angle = SuperVillain:Triangulate("player", unit)

 			if((not distance) or (not angle)) then
 				self:Hide()
 			else
 				local out = floor(tonumber(distance))
-				if(out > 5) then
+
+				if(out >= 0) then
 					if(out > 100) then
 						self.Arrow:SetVertexColor(1,0.1,0.1)
 					elseif(out > 40) then
diff --git a/Interface/AddOns/SVUI/system/cartography.lua b/Interface/AddOns/SVUI/system/cartography.lua
index 28a85a9..5f6c424 100644
--- a/Interface/AddOns/SVUI/system/cartography.lua
+++ b/Interface/AddOns/SVUI/system/cartography.lua
@@ -310,8 +310,8 @@ do
                 w = chunk.width
                 h = chunk.height
             end
-            xDelta = (x2 - x1) * w;
-            yDelta = (y2 - y1) * h;
+            xDelta = (x2 - x1) * (w or 1);
+            yDelta = (y2 - y1) * (h or 1);
         else
             local map1 = _mapdata[map1];
             local map2 = _mapdata[map2];