From bb1a4aebe6e858f36054cf2cca06995362ca492e Mon Sep 17 00:00:00 2001 From: James Whitehead II Date: Fri, 17 Oct 2008 08:11:43 +0000 Subject: [PATCH] * Fixed an issue that prevented Modifier-RightClicking on the world map from setting a new waypoint --- TomTom.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/TomTom.lua b/TomTom.lua index d1668de..825f3e0 100755 --- a/TomTom.lua +++ b/TomTom.lua @@ -284,13 +284,13 @@ local world_click_verify = { ["S"] = function() return IsShiftKeyDown() end, } -function WorldMapButton_OnClick(...) +function WorldMapButton_OnClick(self, ...) local mouseButton, button = ... if mouseButton == "RightButton" then -- Check for all the modifiers that are currently set for mod in TomTom.db.profile.worldmap.create_modifier:gmatch("[ACS]") do if not world_click_verify[mod] or not world_click_verify[mod]() then - return Orig_WorldMapButton_OnClick(...) + return Orig_WorldMapButton_OnClick(self, ...) end end @@ -299,12 +299,12 @@ function WorldMapButton_OnClick(...) local x,y = GetCurrentCursorPosition() if z == 0 then - return Orig_WorldMapButton_OnClick(...) + return Orig_WorldMapButton_OnClick(self, ...) end local uid = TomTom:AddZWaypoint(c,z,x*100,y*100) else - return Orig_WorldMapButton_OnClick(...) + return Orig_WorldMapButton_OnClick(self, ...) end end -- 1.7.9.5