ARTY v1.1.7 & AIRBASE

- Improved ARTY._PassingWaypoint function.
- Corrected AIRBASE.Ras_Al_Khaimah
This commit is contained in:
Frank 2020-01-02 16:17:25 +01:00
parent 740ee74f61
commit 6208c79d1f
2 changed files with 17 additions and 20 deletions

View File

@ -693,7 +693,7 @@ ARTY.db={
--- Arty script version.
-- @field #string version
ARTY.version="1.1.6"
ARTY.version="1.1.7"
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
@ -3848,26 +3848,23 @@ end
-- @param #boolean final True if it is the final waypoint.
function ARTY._PassingWaypoint(group, arty, i, final)
-- Debug message.
local text=string.format("%s, passing waypoint %d.", group:GetName(), i)
if final then
text=string.format("%s, arrived at destination.", group:GetName())
end
arty:T(self.lid..text)
if group and group:IsAlive() then
--[[
if final then
MESSAGE:New(text, 10):ToCoalitionIf(group:GetCoalition(), arty.Debug or arty.report)
else
MESSAGE:New(text, 10):ToAllIf(arty.Debug)
end
]]
local groupname=tostring(group:GetName())
-- Arrived event.
if final and arty.groupname==group:GetName() then
arty:Arrived()
end
-- Debug message.
local text=string.format("%s, passing waypoint %d.", groupname, i)
if final then
text=string.format("%s, arrived at destination.", groupname)
end
arty:T(arty.lid..text)
-- Arrived event.
if final and arty.groupname==groupname then
arty:Arrived()
end
end
end
--- Relocate to another position, e.g. after an engagement to avoid couter strikes.

View File

@ -275,7 +275,7 @@ AIRBASE.PersianGulf = {
["Lavan_Island_Airport"] = "Lavan Island Airport",
["Liwa_Airbase"] = "Liwa Airbase",
["Qeshm_Island"] = "Qeshm Island",
["Ras_Al_Khaimah_International_Airport"] = "Ras Al Khaimah International Airport",
["Ras_Al_Khaimah"] = "Ras Al Khaimah",
["Sas_Al_Nakheel_Airport"] = "Sas Al Nakheel Airport",
["Sharjah_Intl"] = "Sharjah Intl",
["Shiraz_International_Airport"] = "Shiraz International Airport",