From 5e90e4b92193a71ec22fc24e456211b4339d0d71 Mon Sep 17 00:00:00 2001 From: James Whitehead II Date: Tue, 24 Jun 2008 07:49:02 +0000 Subject: [PATCH] Don't clear waypoints when you are on a taxi --- TomTom.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/TomTom.lua b/TomTom.lua index b69e55f..90bbcc1 100755 --- a/TomTom.lua +++ b/TomTom.lua @@ -587,7 +587,9 @@ local function _both_tooltip_update(event, tooltip, uid, dist) end local function _both_clear_distance(event, uid, range, distance, lastdistance) - TomTom:RemoveWaypoint(uid) + if not UnitOnTaxi("player") then + TomTom:RemoveWaypoint(uid) + end end local function _remove(event, uid) -- 1.7.9.5