From 7155f3c9ecd0d73e362a8cfa096b838861097121 Mon Sep 17 00:00:00 2001 From: James Whitehead II Date: Fri, 28 Mar 2008 13:18:55 +0000 Subject: [PATCH] * Fix a bug where the "Enable" checkbox wasn't working for minimap or worldmap waypoints --- TomTom.lua | 4 ++-- TomTom_Config.lua | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/TomTom.lua b/TomTom.lua index b9c161b..259caf2 100755 --- a/TomTom.lua +++ b/TomTom.lua @@ -152,8 +152,8 @@ function TomTom:ReloadWaypoints() for zone,data in pairs(self.waypointprofile) do local c,z = self:GetCZ(zone) local same = (c == pc) and (z == pz) - local minimap = self.profile.minimap.otherzone or same - local world = self.profile.worldmap.otherzone or same + local minimap = self.profile.minimap.enable and (self.profile.minimap.otherzone or same) + local world = self.profile.worldmap.enable and (self.profile.worldmap.otherzone or same) for idx,waypoint in ipairs(data) do local coord,title = waypoint:match("^(%d+):(.*)$") if not title:match("%S") then title = nil end diff --git a/TomTom_Config.lua b/TomTom_Config.lua index 551bc31..f428380 100644 --- a/TomTom_Config.lua +++ b/TomTom_Config.lua @@ -38,6 +38,8 @@ local function createconfig() TomTom:ShowHideCrazyArrow() elseif opt == "otherzone" then TomTom:ReloadWaypoints() + elseif info.arg == "minimap.enable" or info.arg == "worldmap.enable" then + TomTom:ReloadWaypoints() end end -- 1.7.9.5