* Small workaround for Beirut runways
* ATIS minor fix
This commit is contained in:
Applevangelist 2024-01-18 14:32:17 +01:00
parent dcd4d0ab62
commit 08f2c29014
2 changed files with 12 additions and 3 deletions

View File

@ -700,7 +700,7 @@ ATIS.Messages = {
EN = EN =
{ {
HOURS = "hours", HOURS = "hours",
TIME = "hours", TIME = "Hours",
NOCLOUDINFO = "Cloud coverage information not available", NOCLOUDINFO = "Cloud coverage information not available",
OVERCAST = "Overcast", OVERCAST = "Overcast",
BROKEN = "Broken clouds", BROKEN = "Broken clouds",

View File

@ -1900,7 +1900,16 @@ function AIRBASE:_InitRunways(IncludeInverse)
-- Data table. -- Data table.
local runway={} --#AIRBASE.Runway local runway={} --#AIRBASE.Runway
runway.name=string.format("%02d", tonumber(name))
local namefromheading = math.floor(heading/10)
if self.AirbaseName == AIRBASE.Syria.Beirut_Rafic_Hariri and math.abs(namefromheading-name) > 1 then
runway.name=string.format("%02d", tonumber(namefromheading))
else
runway.name=string.format("%02d", tonumber(name))
end
--runway.name=string.format("%02d", tonumber(name))
runway.magheading=tonumber(runway.name)*10 runway.magheading=tonumber(runway.name)*10
runway.heading=heading runway.heading=heading
runway.width=width or 0 runway.width=width or 0