mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
test good abort
when more than one player is still assigned to the task, the task should not abort, only the player...
This commit is contained in:
parent
99cbe0c8bb
commit
02e2f21ec6
@ -287,8 +287,8 @@ function TASK:AbortUnit( PlayerUnit )
|
|||||||
-- It will go to hold, if there are no players in the mission...
|
-- It will go to hold, if there are no players in the mission...
|
||||||
|
|
||||||
local IsRemaining = false
|
local IsRemaining = false
|
||||||
for GroupName, GroupData in pairs( PlayerGroups ) do
|
for GroupName, AssignedGroup in pairs( PlayerGroups ) do
|
||||||
IsRemaining = ( IsRemaining == false ) and self:IsGroupAssigned( PlayerGroup ) or IsRemaining
|
IsRemaining = ( IsRemaining == false ) and self:IsGroupAssigned( AssignedGroup ) or IsRemaining
|
||||||
end
|
end
|
||||||
|
|
||||||
if IsRemaining == false then
|
if IsRemaining == false then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user