Quantcast

Added debug for waypoint generation - for some reason TomTom doesn't seem to like most Outland locations.

James D. Callahan III [07-02-10 - 06:09]
Added debug for waypoint generation - for some reason TomTom doesn't seem to like most Outland locations.
Filename
Waypoint.lua
diff --git a/Waypoint.lua b/Waypoint.lua
index a3ddbe2..5b09440 100644
--- a/Waypoint.lua
+++ b/Waypoint.lua
@@ -525,6 +525,10 @@ function addon:AddWaypoint(recipe_id, acquire_id, location_id)
 			end

 			if _G.TomTom then
+				addon:Debug("Adding TomTom waypoint: ")
+				addon:Debug("Continent: %s, Zone: %s, X: %s, Y: %s, Name: %s, minimap: %s, worldmap: %s",
+					    tostring(continent), tostring(zone), tostring(x), tostring(y), tostring(name), tostring(minimap), tostring(worldmap))
+
 				table.insert(iconlist, _G.TomTom:AddZWaypoint(continent, zone, x, y, name, false, minimap, worldmap))
 			elseif _G.Cartographer_Waypoints then
 				local pt = _G.NotePoint:new(zone, x/100, y/100, desc)