* Fix a bug where the "Enable" checkbox wasn't working for minimap or worldmap waypoints
James Whitehead II [03-28-08 - 13:18]
* Fix a bug where the "Enable" checkbox wasn't working for minimap or worldmap waypoints
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