Quantcast

Fix issue when you have a NPC in an instance and you're trying to display stuff on the maps it would just stop.

ackis [08-30-09 - 00:55]
Fix issue when you have a NPC in an instance and you're trying to display stuff on the maps it would just stop.
Filename
ARLFrame.lua
Docs/CHANGES.txt
diff --git a/ARLFrame.lua b/ARLFrame.lua
index b1085ad..40f0cfa 100644
--- a/ARLFrame.lua
+++ b/ARLFrame.lua
@@ -551,10 +551,8 @@ do
 				--@alpha@
 				addon:Print("DEBUG: No continent/zone map match for ID " .. k .. " - loc is nil.")
 				--@end-alpha@
-				return
-			end
-
-			if (c1[loc["Location"]]) then
+			-- We have the location
+			elseif (c1[loc["Location"]]) then
 				continent = 1
 				zone = c1[loc["Location"]]
 			elseif (c2[loc["Location"]]) then
@@ -570,13 +568,13 @@ do
 				--@alpha@
 				addon:Print("DEBUG: No continent/zone map match for ID " .. k .. ".")
 				--@end-alpha@
-				return
 			end
-
+
 			if ((zone) and (continent)) then
 				local iconuid = TomTom:AddZWaypoint(continent, zone, loc["Coordx"], loc["Coordy"], loc["Name"], false, minimap, worldmap)
 				tinsert(iconlist, iconuid)
 			end
+
 		end
 	end	-- addon:SetupMap()
 end -- do block
diff --git a/Docs/CHANGES.txt b/Docs/CHANGES.txt
index 731f1cc..5ef8a63 100644
--- a/Docs/CHANGES.txt
+++ b/Docs/CHANGES.txt
@@ -11,6 +11,7 @@
 *Removed comment in code that was causing AntiVir to screw up.  It's a fail anti-virus scanner.
 *Fix ATSW and Trade Junkie integrations (Thanks to Thrashfinger).
 *Faction specific recipes which cannot be acquired by the other side (The choppers and the new 3.2 patterns) are now automatically filtered.
+*Fixed a map/mini-map coordinate display issue
 *All professions have skill level data added (exception being cooking and JC)

 ===RC10