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:
FlightControl 2017-05-05 10:57:29 +02:00
parent 99cbe0c8bb
commit 02e2f21ec6

View File

@ -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