Quantcast

Don't clear waypoints when you are on a taxi

James Whitehead II [06-24-08 - 07:49]
Don't clear waypoints when you are on a taxi
Filename
TomTom.lua
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)