Quantcast

* Clicking on the WorldMap (shift-rightclick) not works correctly when you are viewing another zone/continent.

James Whitehead Ii [08-08-07 - 01:05]
* Clicking on the WorldMap (shift-rightclick) not works correctly when you are viewing another zone/continent.
Filename
TomTom.lua
diff --git a/TomTom.lua b/TomTom.lua
index 5ff005b..e950643 100755
--- a/TomTom.lua
+++ b/TomTom.lua
@@ -448,8 +448,9 @@ end
 local Orig_WorldMapButton_OnClick = WorldMapButton_OnClick
 function WorldMapButton_OnClick(mouseButton, button)
     if IsControlKeyDown() and mouseButton == "RightButton" then
-        local cX, cY = GetCurrentCursorPosition()
-        TomTom:AddWaypoint(cX*100, cY*100)
+		local c,z = GetCurrentMapContinent(), GetCurrentMapZone()
+		local x,y = GetCurrentCursorPosition()
+        TomTom:AddZWaypoint(c,z,x*100, y*100)
     else
         Orig_WorldMapButton_OnClick(mouseButton, button)
     end