WoWInterface SVN InFlight

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /branches
    from Rev 138 to Rev 139
    Reverse comparison

Rev 138 → Rev 139

Classic/InFlight/InFlight.lua
102,9 → 102,9
return etimes[#taxiNodes]
end
 
local function addDuration(time)
if time > 0 then
gtt:AddLine(L["Duration"]..FormatTime(time), 1, 1, 1)
local function addDuration(flightTime, estimated)
if flightTime > 0 then
gtt:AddLine(L["Duration"]..(estimated and "~" or "")..FormatTime(flightTime), 1, 1, 1)
else
gtt:AddLine(L["Duration"].."-:--", 0.8, 0.8, 0.8)
end
118,7 → 118,12
return
end
 
addDuration(vars[taxiSrc] and vars[taxiSrc][ShortenName(TaxiNodeName(id))] or GetEstimatedTime(id) or 0)
local duration = vars[taxiSrc] and vars[taxiSrc][ShortenName(TaxiNodeName(id))]
if duration then
addDuration(duration)
else
addDuration(GetEstimatedTime(id) or 0, true)
end
end
 
----------------------------