mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
#Afghanistan additions
This commit is contained in:
@@ -753,6 +753,43 @@ AIRBASE.Kola = {
|
||||
["Severomorsk_3"] = "Severomorsk-3",
|
||||
}
|
||||
|
||||
--- Airbases of the Afghanistan map
|
||||
--
|
||||
-- * AIRBASE.Afghanistan.Bost
|
||||
-- * AIRBASE.Afghanistan.Camp_Bastion
|
||||
-- * AIRBASE.Afghanistan.Camp_Bastion_Heliport
|
||||
-- * AIRBASE.Afghanistan.Chaghcharan
|
||||
-- * AIRBASE.Afghanistan.Dwyer
|
||||
-- * AIRBASE.Afghanistan.Farah
|
||||
-- * AIRBASE.Afghanistan.Herat
|
||||
-- * AIRBASE.Afghanistan.Kandahar
|
||||
-- * AIRBASE.Afghanistan.Kandahar_Heliport
|
||||
-- * AIRBASE.Afghanistan.Maymana_Zahiraddin_Faryabi
|
||||
-- * AIRBASE.Afghanistan.Nimroz
|
||||
-- * AIRBASE.Afghanistan.Qala_i_Naw
|
||||
-- * AIRBASE.Afghanistan.Shindand
|
||||
-- * AIRBASE.Afghanistan.Shindand_Heliport
|
||||
-- * AIRBASE.Afghanistan.Tarinkot
|
||||
--
|
||||
-- @field Afghanistan
|
||||
AIRBASE.Afghanistan = {
|
||||
["Bost"] = "Bost",
|
||||
["Camp_Bastion"] = "Camp Bastion",
|
||||
["Camp_Bastion_Heliport"] = "Camp Bastion Heliport",
|
||||
["Chaghcharan"] = "Chaghcharan",
|
||||
["Dwyer"] = "Dwyer",
|
||||
["Farah"] = "Farah",
|
||||
["Herat"] = "Herat",
|
||||
["Kandahar"] = "Kandahar",
|
||||
["Kandahar_Heliport"] = "Kandahar Heliport",
|
||||
["Maymana_Zahiraddin_Faryabi"] = "Maymana Zahiraddin Faryabi",
|
||||
["Nimroz"] = "Nimroz",
|
||||
["Qala_i_Naw"] = "Qala i Naw",
|
||||
["Shindand"] = "Shindand",
|
||||
["Shindand_Heliport"] = "Shindand Heliport",
|
||||
["Tarinkot"] = "Tarinkot",
|
||||
}
|
||||
|
||||
--- AIRBASE.ParkingSpot ".Coordinate, ".TerminalID", ".TerminalType", ".TOAC", ".Free", ".TerminalID0", ".DistToRwy".
|
||||
-- @type AIRBASE.ParkingSpot
|
||||
-- @field Core.Point#COORDINATE Coordinate Coordinate of the parking spot.
|
||||
@@ -1529,7 +1566,7 @@ function AIRBASE:GetFreeParkingSpotsTable(termtype, allowTOAC)
|
||||
-- Put coordinates of free spots into table.
|
||||
local freespots={}
|
||||
for _,_spot in pairs(parkingfree) do
|
||||
if AIRBASE._CheckTerminalType(_spot.Term_Type, termtype) and _spot.Term_Index>0 then
|
||||
if AIRBASE._CheckTerminalType(_spot.Term_Type, termtype) then -- and _spot.Term_Index>0 then --Not sure why I had this in. But caused problems now for a Gas platform where a valid spot was not included!
|
||||
if (allowTOAC and allowTOAC==true) or _spot.TO_AC==false then
|
||||
|
||||
local spot=self:_GetParkingSpotByID(_spot.Term_Index)
|
||||
|
||||
Reference in New Issue
Block a user