ATIS UTILS

This commit is contained in:
Frank
2019-10-21 21:58:27 +02:00
parent b3be71c75b
commit 9e742b1620
2 changed files with 20 additions and 7 deletions
+3 -3
View File
@@ -1699,13 +1699,13 @@ function ATIS:GetNavPoint(navpoints, runway, left)
local rwyy=tonumber(self:GetRunwayWithoutLR(runway))*10
local navL=self:GetRunwayLR(nav.runway)
local hdgD=UTILS.HdgDiff(navy,rwyy)
if UTILS.HdgDiff(navy,rwyy)<=15 then --We allow an error of +-15° here.
if navL==nil or navL==left then
if hdgD<=15 then --We allow an error of +-15° here.
if navL==nil or (navL==true and left==true) or (navL==false and left==false) then
return nav
end
end
end
end