mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
Fixes abort
This commit is contained in:
parent
82477c93d2
commit
1c4002fb37
@ -286,10 +286,14 @@ function TASK:AbortGroup( PlayerGroup )
|
|||||||
PlayerGroups:Flush()
|
PlayerGroups:Flush()
|
||||||
local IsRemaining = false
|
local IsRemaining = false
|
||||||
for GroupName, AssignedGroup in pairs( PlayerGroups:GetSet() or {} ) do
|
for GroupName, AssignedGroup in pairs( PlayerGroups:GetSet() or {} ) do
|
||||||
IsRemaining = ( ( IsRemaining == false ) and self:IsGroupAssigned( AssignedGroup ) ) or IsRemaining
|
if self:IsGroupAssigned( AssignedGroup ) == true then
|
||||||
self:F( { Task = self:GetName(), IsRemaining = IsRemaining } )
|
IsRemaining = true
|
||||||
|
self:F( { Task = self:GetName(), IsRemaining = IsRemaining } )
|
||||||
|
break
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
self:F( { Task = self:GetName(), IsRemaining = IsRemaining } )
|
||||||
if IsRemaining == false then
|
if IsRemaining == false then
|
||||||
self:Abort()
|
self:Abort()
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user