Merge remote-tracking branch 'origin/master' into develop

This commit is contained in:
Applevangelist 2024-01-18 14:35:54 +01:00
commit 0ce3a189c3
2 changed files with 12 additions and 3 deletions

View File

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

View File

@ -1899,8 +1899,17 @@ function AIRBASE:_InitRunways(IncludeInverse)
local heading=math.deg(bearing)
-- Data table.
local runway={} --#AIRBASE.Runway
runway.name=string.format("%02d", tonumber(name))
local runway={} --#AIRBASE.Runway
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.heading=heading
runway.width=width or 0