mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
xx
This commit is contained in:
parent
869339150a
commit
5c1d367926
@ -2264,11 +2264,11 @@ function AWACS:_StartEscorts(Shiftchange)
|
||||
self.CatchAllMissions[#self.CatchAllMissions+1] = escort
|
||||
|
||||
if Shiftchange then
|
||||
self.EscortMissionReplacement[1] = escort
|
||||
self.EscortMissionReplacement[i] = escort
|
||||
else
|
||||
self.EscortMission[1] = escort
|
||||
self.EscortMission[i] = escort
|
||||
end
|
||||
--end
|
||||
end
|
||||
|
||||
return self
|
||||
end
|
||||
|
||||
@ -700,6 +700,15 @@ function PLAYERTASK:IsDone()
|
||||
return IsDone
|
||||
end
|
||||
|
||||
--- [User] Check if task is NOT done
|
||||
-- @param #PLAYERTASK self
|
||||
-- @return #boolean done
|
||||
function PLAYERTASK:IsNotDone()
|
||||
self:T(self.lid.."IsNotDone?")
|
||||
local IsNotDone = not self:IsDone()
|
||||
return IsNotDone
|
||||
end
|
||||
|
||||
--- [User] Check if PLAYERTASK has clients assigned to it.
|
||||
-- @param #PLAYERTASK self
|
||||
-- @return #boolean hasclients
|
||||
@ -1156,7 +1165,7 @@ function PLAYERTASK:onafterCancel(From, Event, To)
|
||||
self.TaskController:__TaskCancelled(-1,self)
|
||||
end
|
||||
self.timestamp = timer.getAbsTime()
|
||||
self.FinalState = "Cancel"
|
||||
self.FinalState = "Cancelled"
|
||||
self:__Done(-1)
|
||||
return self
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user