mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
Merge pull request #1486 from Applevangelist/patch-78
Update AirWing.lua
This commit is contained in:
commit
eda70742eb
@ -1464,7 +1464,9 @@ function AIRWING:onafterMissionCancel(From, Event, To, Mission)
|
|||||||
-- Info message.
|
-- Info message.
|
||||||
self:I(self.lid..string.format("Cancel mission %s", Mission.name))
|
self:I(self.lid..string.format("Cancel mission %s", Mission.name))
|
||||||
|
|
||||||
if Mission:IsPlanned() or Mission:IsQueued() or Mission:IsRequested() then
|
local Ngroups = Mission:CountOpsGroups()
|
||||||
|
|
||||||
|
if Mission:IsPlanned() or Mission:IsQueued() or Mission:IsRequested() or Ngroups == 0 then
|
||||||
|
|
||||||
Mission:Done()
|
Mission:Done()
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user