From 7756dd055433d0e22b5f89164dc140f94c8a1816 Mon Sep 17 00:00:00 2001 From: Steven Jackson Date: Mon, 25 Aug 2014 22:06:53 -0500 Subject: [PATCH] patch --- .../SVUI/libs/oUF_Plugins/oUF_GPS/oUF_GPS.lua | 5 +++-- Interface/AddOns/SVUI/system/cartography.lua | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) 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]; -- 1.7.9.5