diff --git a/Moose Development/Moose/Ops/ATIS.lua b/Moose Development/Moose/Ops/ATIS.lua index 719ad8da7..a7222956b 100644 --- a/Moose Development/Moose/Ops/ATIS.lua +++ b/Moose Development/Moose/Ops/ATIS.lua @@ -419,6 +419,8 @@ ATIS.RunwayM2T = { TheChannel = -10, Syria = 5, MarianaIslands = 2, + Falklands = 12, + Sinai = 5, } --- Whether ICAO phraseology is used for ATIS broadcasts. @@ -430,6 +432,8 @@ ATIS.RunwayM2T = { -- @field #boolean TheChannel true. -- @field #boolean Syria true. -- @field #boolean MarianaIslands true. +-- @field #boolean Falklands true. +-- @field #boolean Sinai true. ATIS.ICAOPhraseology = { Caucasus = true, Nevada = false, @@ -437,7 +441,9 @@ ATIS.ICAOPhraseology = { PersianGulf = true, TheChannel = true, Syria = true, - MarianaIslands = true + MarianaIslands = true, + Falklands = true, + Sinai = true, } --- Nav point data. @@ -1272,7 +1278,8 @@ end -- @param #string Event Event. -- @param #string To To state. function ATIS:onafterStart( From, Event, To ) - + self:I("Airbase category is "..self.airbase:GetAirbaseCategory()) + -- Check that this is an airdrome. if self.airbase:GetAirbaseCategory() == Airbase.Category.SHIP then self:E( self.lid .. string.format( "ERROR: Cannot start ATIS for airbase %s! Only AIRDROMES are supported but NOT SHIPS.", self.airbasename ) ) @@ -1823,7 +1830,10 @@ function ATIS:onafterBroadcast( From, Event, To ) -- Airbase name subtitle = string.format( "%s", self.airbasename ) - if (not self.ATISforFARPs) and self.airbasename:find( "AFB" ) == nil and self.airbasename:find( "Airport" ) == nil and self.airbasename:find( "Airstrip" ) == nil and self.airbasename:find( "airfield" ) == nil and self.airbasename:find( "AB" ) == nil then + if (not self.ATISforFARPs) and self.airbasename:find( "AFB" ) == nil and self.airbasename:find( "Airport" ) == nil + and self.airbasename:find( "Airstrip" ) == nil and self.airbasename:find( "airfield" ) == nil and self.airbasename:find( "AB" ) == nil + and self.airbasename:find( "Field" ) == nil + then subtitle = subtitle .. " Airport" end if not self.useSRS then diff --git a/Moose Development/Moose/Wrapper/Airbase.lua b/Moose Development/Moose/Wrapper/Airbase.lua index 276ec5b8d..dd52825fa 100644 --- a/Moose Development/Moose/Wrapper/Airbase.lua +++ b/Moose Development/Moose/Wrapper/Airbase.lua @@ -11,7 +11,7 @@ -- @module Wrapper.Airbase -- @image Wrapper_Airbase.JPG - +--- -- @type AIRBASE -- @field #string ClassName Name of the class, i.e. "AIRBASE". -- @field #table CategoryName Names of airbase categories. @@ -548,6 +548,8 @@ AIRBASE.Syria={ -- * AIRBASE.MarianaIslands.Saipan_Intl -- * AIRBASE.MarianaIslands.Tinian_Intl -- * AIRBASE.MarianaIslands.Olf_Orote +-- * AIRBASE.MarianaIslands.Pagan_Airstrip +-- * AIRBASE.MarianaIslands.North_West_Field -- -- @field MarianaIslands AIRBASE.MarianaIslands = { @@ -557,6 +559,8 @@ AIRBASE.MarianaIslands = { ["Saipan_Intl"] = "Saipan Intl", ["Tinian_Intl"] = "Tinian Intl", ["Olf_Orote"] = "Olf Orote", + ["Pagan_Airstrip"] = "Pagan Airstrip", + ["North_West_Field"] = "North West Field", } --- Airbases of the South Atlantic map: @@ -787,7 +791,13 @@ function AIRBASE:Register(AirbaseName) -- Category. self.category=self.descriptors and self.descriptors.category or Airbase.Category.AIRDROME - + + -- H2 is bugged + --if self.AirbaseName == "H4" and self.descriptors == nil then + --self:E("***** H4 on Syria map is currently bugged!") + --return nil + --end + -- Set category. if self.category==Airbase.Category.AIRDROME then self.isAirdrome=true