mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Merge pull request #2219 from FlightControl-Master/Applevangelist-patch-1
Update Unit.lua
This commit is contained in:
commit
30bedb39f1
@ -1777,6 +1777,7 @@ function UNIT:GetSTN()
|
||||
local VCN = nil -- VoiceCallsignNumber
|
||||
local FGL = false -- FlightGroupLeader
|
||||
local template = self:GetTemplate()
|
||||
if template then
|
||||
if template.AddPropAircraft then
|
||||
if template.AddPropAircraft.STN_L16 then
|
||||
STN = template.AddPropAircraft.STN_L16
|
||||
@ -1793,6 +1794,6 @@ function UNIT:GetSTN()
|
||||
if template.datalinks and template.datalinks.SADL and template.datalinks.SADL.settings then
|
||||
FGL = template.datalinks.SADL.settings.flightLead
|
||||
end
|
||||
|
||||
end
|
||||
return STN, VCL, VCN, FGL
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user