Quantcast

Bug fix I think

Scott Sibley [10-19-10 - 20:01]
Bug fix I think
Filename
Modules/Debug/Debug.lua
Modules/UnitTooltip/UnitTooltip.lua
diff --git a/Modules/Debug/Debug.lua b/Modules/Debug/Debug.lua
index 21b7f94..00c26b5 100644
--- a/Modules/Debug/Debug.lua
+++ b/Modules/Debug/Debug.lua
@@ -40,14 +40,6 @@ function mod:OnInitialize()
 	self.db = StarTip.db:RegisterNamespace(self:GetName(), defaults)
 end

-local function new1()
-	return LibBuffer:New("Debug buffer", random(1000), " ")
-end
-
-local function updateText(widget)
-
-end
-
 local function new2()
 	return WidgetText:New(core, "Debug text", cfg, 0, 0, 0, StarTip.db.profile.errorLevel, updateText)
 end
@@ -56,21 +48,6 @@ local function new3()
 	return LibProperty:New(nil, core,	"debug property", "", "")
 end

-local plugin = {}
-LibStub("LibScriptableDisplayPluginUtils-1.0"):New(plugin)
-
-local function update()
-	mod.frame1:ClearAllPoints()
-	mod.frame2:ClearAllPoints()
-	local width = UIParent:GetWidth()
-	local height = UIParent:GetHeight()
-	mod.frame2:SetPoint("BOTTOMLEFT", UIParent, "BOTTOMLEFT", 550 / 0.5 / 0.2, 550 / 0.5 / 0.2)
-	mod.frame3:SetPoint("BOTTOMLEFT", UIParent, "BOTTOMLEFT", 550, 550)
-	if plugin.Intersect(mod.frame2, mod.frame3) then
-		StarTip:Print("---------------intersection-----------------")
-	end
-end
-
 function mod:OnEnable()
 end

diff --git a/Modules/UnitTooltip/UnitTooltip.lua b/Modules/UnitTooltip/UnitTooltip.lua
index 76de19d..1ffb80f 100644
--- a/Modules/UnitTooltip/UnitTooltip.lua
+++ b/Modules/UnitTooltip/UnitTooltip.lua
@@ -387,7 +387,7 @@ return select(2, GetRole(unit))
 		enabled = true,
 		update = 1000
 	},
-	[22] = {
+	--[[[22] = {
 		name = "Location",
 		left = [[
 return "Location:"
@@ -396,7 +396,7 @@ return "Location:"
 return select(3, GetUnitTooltipStats(unit))
 ]],
 		enabled = true
-	},
+	},]]
 	[23] = {
 		name = "Range",
 		left = [[
@@ -404,7 +404,7 @@ local min, max = RangeCheck:GetRange(unit)
 if not min then
     return "No range info"
 elseif not max then
-    return "Target is over " .. min .. " yards"
+    return format("Target is over %d yards", min)
 else
     return "Between " .. min .. " and " .. max .. " yards"
 end