Added some testing code

Aaron DeGrow [05-01-14 - 17:59]
Added some testing code
Filename
RangeReticle.lua
diff --git a/RangeReticle.lua b/RangeReticle.lua
index a74fe56..d65657d 100755
--- a/RangeReticle.lua
+++ b/RangeReticle.lua
@@ -632,12 +632,20 @@ function OnRangeUpdate()

             -- For debugging map types
             --if divisor == -1 then
-            --[[if true then
+            if true then
             	CHAT_SYSTEM:AddMessage("Width: " .. tostring(mapWidth))
             	CHAT_SYSTEM:AddMessage("Height: " .. tostring(mapHeight))
             	CHAT_SYSTEM:AddMessage("Type: " .. tostring(mapType))
             	CHAT_SYSTEM:AddMessage("Content: " .. tostring(mapContentType))
-            end]]
+            	local dimensionsX, dimensionsY = ZO_WorldMapContainer1:GetTextureFileDimensions()
+            	CHAT_SYSTEM:AddMessage("Dimensions: " .. tostring(dimensionsX) .. ', ' .. tostring(dimensionsY))
+   				local actualSelfX = selfX * dimensionsX * mapWidth
+   				local actualSelfY = selfY * dimensionsY * mapHeight
+   				local actualTargetX = targetX * dimensionsX * mapWidth
+   				local actualTargetY = targetY * dimensionsY * mapHeight
+   				local dist = math.sqrt(math.pow((actualSelfX - actualTargetX), 2) + math.pow((actualSelfY - actualTargetY), 2))
+   				CHAT_SYSTEM:AddMessage("Dist: " .. tostring(dist))
+            end

 			local dist = math.sqrt(math.pow((selfX - targetX) / divisor, 2) + math.pow((selfY - targetY) / divisor, 2))
             distance = math.floor((dist * 10000) - 0.5)