This commit is contained in:
funkyfranky
2019-04-09 14:56:20 +02:00
parent 6593a262bb
commit 4c08002d3e
+5 -2
View File
@@ -1667,7 +1667,7 @@ AIRBOSS.MenuF10Root=nil
--- Airboss class version. --- Airboss class version.
-- @field #string version -- @field #string version
AIRBOSS.version="0.9.9.7" AIRBOSS.version="0.9.9.8"
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-- TODO list -- TODO list
@@ -8861,8 +8861,11 @@ function AIRBOSS:_Initial(playerData)
-- Relative heading to carrier direction. -- Relative heading to carrier direction.
local relheading=self:_GetRelativeHeading(playerData.unit, false) local relheading=self:_GetRelativeHeading(playerData.unit, false)
-- Alitude of player in feet.
local altitude=UTILS.MetersToFeet(playerData.unit:GetAltitude())
-- Check if player is in zone and flying roughly in the right direction. -- Check if player is in zone and flying roughly in the right direction.
if inzone and math.abs(relheading)<60 then if inzone and math.abs(relheading)<60 and altitude<=1300 then
-- Send message for normal and easy difficulty. -- Send message for normal and easy difficulty.
if playerData.showhints then if playerData.showhints then