From fff58aca1a549065eae09ef090535584b3ecc844 Mon Sep 17 00:00:00 2001 From: James Whitehead Ii Date: Tue, 22 May 2007 23:16:04 +0000 Subject: [PATCH] * Fixed a lua error that occured when setting a waypoint * TomTom now announces the label you've given a waypoint, if it exists. --- TomTom.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/TomTom.lua b/TomTom.lua index 9b0c834..856146e 100755 --- a/TomTom.lua +++ b/TomTom.lua @@ -266,11 +266,11 @@ local function MinimapIcon_OnUpdate(self, elapsed) self.arrow:Show() self.arrow.seqtime = 0 self.dot:Hide() - icon.edge = true + self.edge = true elseif not edge and not dot then self.dot:Show() self.arrow:Hide() - icon.edge = false + self.edge = false end local dist,x,y = Astrolabe:GetDistanceToIcon(self) @@ -279,7 +279,9 @@ local function MinimapIcon_OnUpdate(self, elapsed) Astrolabe:RemoveIconFromMinimap(self) self.pair:Hide() table.insert(TomTom.worldmapIcons, self.pair) - TomTom:PrintF("You have arrived at your location (%s)", self.coord) + local msg = (self.label and self.label ~= "") and self.label or "your destination" + + TomTom:PrintF("You have arrived at %s (%s)", msg, self.coord) for idx,entry in ipairs(TomTom.w_points) do local w_icon = entry.icon -- 1.7.9.5