From 8d1f9d239e345f481b4f48db076bf898cfc97078 Mon Sep 17 00:00:00 2001 From: James Whitehead II Date: Mon, 11 Aug 2008 19:07:25 +0000 Subject: [PATCH] Fixed a bug that cause new waypoints to not respect the Enable World and Enable Minimap options --- TomTom.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/TomTom.lua b/TomTom.lua index 96bef12..834da8c 100755 --- a/TomTom.lua +++ b/TomTom.lua @@ -3,7 +3,7 @@ ----------------------------------------------------------------------------]] function IsWrathBuild() - return(tonumber(select(4, GetBuildInfo())) >= 30000) + return select(4, GetBuildInfo()) >= 30000 end -- Simple localization table for messages @@ -699,8 +699,8 @@ function TomTom:AddZWaypoint(c, z, x, y, desc, persistent, minimap, world, custo -- Default values if persistent == nil then persistent = self.profile.persistence.savewaypoints end - if minimap == nil then minimap = true end - if world == nil then world = true end + if minimap == nil then minimap = self.profile.minimap.enable end + if world == nil then world = self.profile.worldmap.enable end local coord = self:GetCoord(x / 100, y / 100) local zone = self:GetMapFile(c, z) -- 1.7.9.5