This commit is contained in:
Frank
2020-09-08 00:15:29 +02:00
parent 38f5d45d5b
commit 123144d06e
3 changed files with 7 additions and 8 deletions

View File

@@ -2452,13 +2452,12 @@ function FLIGHTGROUP:onafterStop(From, Event, To)
self:UnHandleEvent(EVENTS.Ejection)
self:UnHandleEvent(EVENTS.Crash)
self:UnHandleEvent(EVENTS.RemoveUnit)
-- Remove flight from data base.
_DATABASE.FLIGHTGROUPS[self.groupname]=nil
-- Call OPSGROUP function.
self:GetParent(self).onafterStop(self, From, Event, To)
self:GetParent(self).onafterStop(self, From, Event, To)
-- Remove flight from data base.
_DATABASE.FLIGHTGROUPS[self.groupname]=nil
end
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

View File

@@ -903,7 +903,7 @@ function SQUADRON:RecruitAssets(Mission, Npayloads)
end
-- Check if in a state where we really do not want to fight any more.
if flightgroup:IsLanding() or flightgroup:IsLanded() or flightgroup:IsArrived() or flightgroup:IsDead() then
if flightgroup:IsHolding() or flightgroup:IsLanding() or flightgroup:IsLanded() or flightgroup:IsArrived() or flightgroup:IsDead() or flightgroup:IsStopped() then
combatready=false
end