WoWInterface SVN InFlight

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 158 to Rev 159
    Reverse comparison

Rev 158 → Rev 159

branches/Classic/InFlight/InFlight.lua
17,7 → 17,7
local Print, PrintD = InFlight.Print, InFlight.PrintD
local vars, db -- addon databases
local taxiSrc, taxiSrcName, taxiDst, taxiDstName, endTime -- location data
local porttaken, takeoff, inworld, ontaxi -- flags
local porttaken, takeoff, inworld, outworld, ontaxi -- flags
local ratio, endText = 0, "??" -- cache variables
local sb, spark, timeText, locText, bord -- frame elements
local totalTime, startTime, elapsed, throt = 0, 0, 0, 0 -- throttle vars
489,6 → 489,10
return
end
 
if ontaxi and not inworld then
return
end
 
if not UnitOnTaxi("player") then -- event bug fix
ontaxi = nil
end
562,11 → 566,17
function self:PLAYER_LEAVING_WORLD()
PrintD('PLAYER_LEAVING_WORLD')
inworld = nil
outworld = GetTime()
end
 
function self:PLAYER_ENTERING_WORLD()
PrintD('PLAYER_ENTERING_WORLD')
inworld = true
if outworld then
startTime = startTime - (outworld - GetTime())
end
 
outworld = nil
end
 
function self:PLAYER_CONTROL_GAINED()